chiark / gitweb /
fstab-generator: initrd - mount selected entries from /sysroot/etc/fstab
authorTom Gundersen <teg@jklm.no>
Fri, 22 Feb 2013 10:52:36 +0000 (11:52 +0100)
committerTom Gundersen <teg@jklm.no>
Fri, 1 Mar 2013 21:52:36 +0000 (22:52 +0100)
commit3d22d1ab57bf44c92e4d9ca95d9728105dd3fb0d
tree01e8fb92ae5f8cb766c7a37e1aee829397b8c4c2
parentfea9740ae463c409b84a38d2592d434c2875975b
fstab-generator: initrd - mount selected entries from /sysroot/etc/fstab

We only mount "/usr" and entries marked with "x-initrd.mount".

This (together with the right unit files) is needed in the initramfs in order to
natively support mounting /usr (and friends) from the initramfs.

The way it is meant to work is:
 * wait for sysroot.mount to be mounted
 * do a daemon-reload to generate sysroot-usr.mount (++) from /sysroot/etc/fstab
 * wait for sysroot-usr.mount to be mounted
 * switch-root

Cc: Harald Hoyer <harald.hoyer@gmail.com>
Cc: Dave Reisner <d@falconindy.com>
src/fstab-generator/fstab-generator.c