chiark / gitweb /
mount: do not implicitly pull in fsck service for root dir
[elogind.git] / src / mount.c
index 53edf9d560ea48834eda89a0cdbcbd0eb50ed44b..5aa51dec5399352c69fd1867305882ffcce6d4f5 100644 (file)
@@ -360,7 +360,8 @@ static int mount_add_device_links(Mount *m) {
         }
 
         if (p->passno > 0 &&
-            UNIT(m)->meta.manager->running_as == MANAGER_SYSTEM) {
+            UNIT(m)->meta.manager->running_as == MANAGER_SYSTEM &&
+            !path_equal(m->where, "/")) {
                 char *name;
                 Unit *fsck;
                 /* Let's add in the fsck service */