chiark / gitweb /
fstab-generator: don't accept missing root=, but accept root=none
authorTobias Hunger <tobias.hunger@gmail.com>
Tue, 24 Mar 2015 23:05:38 +0000 (00:05 +0100)
committerTom Gundersen <teg@jklm.no>
Tue, 24 Mar 2015 23:00:46 +0000 (00:00 +0100)
commit093c2cfe3b1ae6081f12927ae7906d90d6623534
treea28d0f16573bb9f8d86872d06e8d49ce2b41fcc0
parenta4135d32340a5a6cca7a10cc797cafda5451f982
fstab-generator: don't accept missing root=, but accept root=none

And other non-device entries (like fstab does).

Mount whatever the user asked to be mounted on / on the kernel
command line. Do less sanity check and do *not* bail out
when the mount device looks strange or does not exist.

This basically makes the changes for deviceless filesystems
from yesterday unnecessary and is in line with what we do for
filesystems set up in fstab.

Remove some code that is now dead (reverting fb02a2775a65 and
b0438462).

[tomegun:
  - change patch title/description a bit.
  - don't touch the /usr logic, that would be a separate change and
    we don't currently have a convincing use-case for that.
  - don't bail out on /sys ro. This only makes sense in containers,
    where we would not be doing this anyway. If there is a use-case
    we could consider that as a separate patch.]
src/fstab-generator/fstab-generator.c
src/shared/generator.c
src/shared/util.c
src/shared/util.h