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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-12-04 14:00:19 +01:00
parent 9d22f97b87
commit a3e7ea0282
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}