summaryrefslogtreecommitdiff
path: root/src/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mount.c')
-rw-r--r--src/mount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mount.c b/src/mount.c
index 53edf9d560..5aa51dec53 100644
--- a/src/mount.c
+++ b/src/mount.c
@@ -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 */