[systemd-devel] [PATCH 1/2] fstab-generator: mount /usr in the initrd if specified on /proc/cmdline

Harald Hoyer harald.hoyer at gmail.com
Fri Mar 1 09:33:49 PST 2013

Ok, what do we need for /usr?

1. if specified on the kernel command line, we don't need /sysroot/etc/fstab and
can generate everything with the fstab-generator.

2. if not specified on the kernel command line, we have to wait for
sysroot.mount and then copy over the /usr line to /etc/fstab and change the
mountpoint to "/sysroot/usr". After that a daemon-reload would rerun the
fstab-generator, which would generate the correct units.

If /usr is a btrfs subvolumes of the root volume, then we have to use some of
the rootflags for /usr also. E.g. it's not possible to mount root ro and /usr
rw, IIRC.

More information about the systemd-devel mailing list