fstab-generator: Do not check deviceless filesystems
There is no need to check those.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
b043846208
commit
fb02a2775a
@@ -42,6 +42,11 @@ int generator_write_fsck_deps(
|
|||||||
assert(what);
|
assert(what);
|
||||||
assert(where);
|
assert(where);
|
||||||
|
|
||||||
|
if (fstype_is_deviceless(fstype)) {
|
||||||
|
log_debug("Not checking deviceless filesystem \"%s\".", fstype);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!is_device_path(what)) {
|
if (!is_device_path(what)) {
|
||||||
log_warning("Checking was requested for \"%s\", but it is not a device.", what);
|
log_warning("Checking was requested for \"%s\", but it is not a device.", what);
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user