diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-12-04 14:00:19 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-12-12 21:58:00 +0100 |
commit | a3e7ea02824645c1e8afdc39d0386855e4158a84 (patch) | |
tree | fd64eee1aa187708841116c962da3c32f33917ff /src/fstab-generator | |
parent | getty-generator: use the new main function definer (diff) | |
download | systemd-a3e7ea02824645c1e8afdc39d0386855e4158a84.tar.xz systemd-a3e7ea02824645c1e8afdc39d0386855e4158a84.zip |
fstab-generator: fix check for /sys
It would work when the generator was run by systemd, since generators
are always started in "/", but when running the generator for debugging
purposes the result would be ... different.
Diffstat (limited to 'src/fstab-generator')
-rw-r--r-- | src/fstab-generator/fstab-generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c index d5e5412059..616b42f33f 100644 --- a/src/fstab-generator/fstab-generator.c +++ b/src/fstab-generator/fstab-generator.c @@ -539,7 +539,7 @@ static int parse_fstab(bool initrd) { if (!what) return log_oom(); - if (is_device_path(what) && path_is_read_only_fs("sys") > 0) { + if (is_device_path(what) && path_is_read_only_fs("/sys") > 0) { log_info("Running in a container, ignoring fstab device entry for %s.", what); continue; } |