Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3560

System and Network configuration • OverlayFS & /usr

$
0
0
Trying to resolver my issue decide use systemd but due to wrong order mounting points cannot jump it.

In my cause to working overlayFS on /usr first is need mount /overlay dir. Tested and below working fine, overlayFS is creating under /usr

Code:

mount -t overlay overlay -o,lowerdir=/usr,upperdir=/overlay/upper/usr/,workdir=/overlay/workdir/usr/ /usr
Therefore move entry from /etc/fstab /overlay dir and /usr overlayFS into systemd units however get error:

Code:

mar 06 01:16:34 debian kernel: overlayfs: failed to resolve '/overlay/upper/usr': -2


Reason is below error appear before /overlay directory is mounted

My init files are:

/etc/systemd/system/overlay.mount

Code:

[Unit]Description=Mount /overlay ext4Before=local-fs.targetWants=local-fs.target[Mount]What=/dev/disk/by-uuid/d09bf587-a6c9-4116-bdb9-df7a33117f9aWhere=/overlayType=ext4Options=errors=remount-ro#TimeoutSec=seconds[Install]WantedBy=local-fs-pre.target
and

/etc/systemd/system/usr.mount

Code:

[Unit]Description=Mount OverlaFS /usrWants=local-fs.targetAfter=overaly.mount[Mount]What=overlayWhere=/usrType=overlayOptions=x-systemd.requires=/overlay,lowerdir=/usr,upperdir=/overlay/upper/usr,workdir=/overlay/workdir/usr#TimeoutSec=seconds[Install]WantedBy=local-fs-pre.target
Can someone help me fix systemd unit files and set properly order of mounting, 1st /overlay and next /usr overlayFS?

Statistics: Posted by oneiro — 2024-03-06 00:38 — Replies 1 — Views 289



Viewing all articles
Browse latest Browse all 3560

Latest Images

Trending Articles



Latest Images