diff options
-rw-r--r-- | src/fstab-generator/fstab-generator.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c index 1227f0895d..5480e54b4e 100644 --- a/src/fstab-generator/fstab-generator.c +++ b/src/fstab-generator/fstab-generator.c @@ -152,6 +152,11 @@ static int add_fsck(FILE *f, const char *what, const char *where, const char *ty if (passno == 0) return 0; + if (!is_device_path(what)) { + log_warning("Checking was requested for \"%s\", but it is not a device.", what); + return 0; + } + if (type && !streq(type, "auto")) { int r; const char *checker; |