summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shared/generator.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shared/generator.c b/src/shared/generator.c
index 569b25bb7c..c348ca2e04 100644
--- a/src/shared/generator.c
+++ b/src/shared/generator.c
@@ -42,6 +42,11 @@ int generator_write_fsck_deps(
assert(what);
assert(where);
+ if (fstype_is_deviceless(fstype)) {
+ log_debug("Not checking deviceless filesystem \"%s\".", fstype);
+ return 0;
+ }
+
if (!is_device_path(what)) {
log_warning("Checking was requested for \"%s\", but it is not a device.", what);
return 0;