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:
parent
9d22f97b87
commit
a3e7ea0282
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue