chiark / gitweb /
mount: do not implicitly pull in fsck service for root dir
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Oct 2010 12:26:46 +0000 (14:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Oct 2010 12:26:46 +0000 (14:26 +0200)
src/mount.c

index 53edf9d..5aa51de 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 */