From 093c2cfe3b1ae6081f12927ae7906d90d6623534 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Wed, 25 Mar 2015 00:05:38 +0100 Subject: 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/shared/util.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/shared/util.c') diff --git a/src/shared/util.c b/src/shared/util.c index 2d50f73dc4..ad548da82a 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -1713,35 +1713,6 @@ bool fstype_is_network(const char *fstype) { return nulstr_contains(table, fstype); } -bool fstype_is_deviceless(const char *fstype) { - static const char table[] = - "autofs\0" - "bdev\0" - "cgroup\0" - "configfs\0" - "cpuset\0" - "debugfs\0" - "devpts\0" - "devtmpfs\0" - "efivarfs\0" - "hugetlbfs\0" - "mqueue\0" - "overlayfs\0" - "pipefs\0" - "proc\0" - "pstore\0" - "ramfs\0" - "rootfs\0" - "rpc_pipefs\0" - "securityfs\0" - "sockfs\0" - "sysfs\0" - "tmpfs\0"; - - return !isempty(fstype) && ( - nulstr_contains(table, fstype) || fstype_is_network(fstype)); -} - int chvt(int vt) { _cleanup_close_ int fd; -- cgit v1.2.3-54-g00ecf