summaryrefslogtreecommitdiff
path: root/src/shared/generator.c
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@gmail.com>2015-03-25 00:05:38 +0100
committerTom Gundersen <teg@jklm.no>2015-03-25 00:00:46 +0100
commit093c2cfe3b1ae6081f12927ae7906d90d6623534 (patch)
treea28d0f16573bb9f8d86872d06e8d49ce2b41fcc0 /src/shared/generator.c
parenta4135d32340a5a6cca7a10cc797cafda5451f982 (diff)
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.]
Diffstat (limited to 'src/shared/generator.c')
-rw-r--r--src/shared/generator.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/shared/generator.c b/src/shared/generator.c
index c348ca2e04..569b25bb7c 100644
--- a/src/shared/generator.c
+++ b/src/shared/generator.c
@@ -42,11 +42,6 @@ int generator_write_fsck_deps(
assert(what);
assert(where);
- if (fstype_is_deviceless(fstype)) {
- log_debug("Not checking deviceless filesystem \"%s\".", fstype);
- return 0;
- }
-
if (!is_device_path(what)) {
log_warning("Checking was requested for \"%s\", but it is not a device.", what);
return 0;