[systemd-devel] [PATCH 2/2] fstab-generator: Do not check deviceless filesystems

Tobias Hunger tobias.hunger at gmail.com
Mon Mar 23 16:53:00 PDT 2015


There is no need to check those.
---
 src/shared/generator.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/shared/generator.c b/src/shared/generator.c
index 569b25b..c348ca2 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;
-- 
2.3.3



More information about the systemd-devel mailing list