chiark / gitweb /
fstab-generator: generate new_root.mount in initrd
authorTom Gundersen <teg@jklm.no>
Fri, 23 Nov 2012 02:41:13 +0000 (03:41 +0100)
committerTom Gundersen <teg@jklm.no>
Fri, 28 Dec 2012 22:39:42 +0000 (23:39 +0100)
commit5e398e546ea65751e6a774daf828fe06f74434a2
tree3439816dda0aadd5b725b0e77eab11befe23ee16
parent13068da8b0b27bc56f0c5b245e5dbaa3dcd102d9
fstab-generator: generate new_root.mount in initrd

The configuration is taken from /proc/cmdline, aiming at emulating the
behavior of the kernel when no initramfs is used.

The supported options are: root=, rootfstype=, rootwait=, rootflags=,
ro, and rw. rootdelay= was dropped, as it is not really useful in a
systemd world, but could easily be added.

v2: fix comments by Lennart, and complain loudly if root= can not be found

Cc: Harald Hoyer <harald@redhat.com>
Cc: Dave Reisner <dreisner@archlinux.org>
src/fstab-generator/fstab-generator.c