summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mount.c2
-rw-r--r--src/special.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mount.c b/src/mount.c
index c1a1d51141..76e4aa9bb2 100644
--- a/src/mount.c
+++ b/src/mount.c
@@ -281,7 +281,7 @@ static int mount_add_default_dependencies(Mount *m) {
if (m->meta.manager->running_as == MANAGER_SYSTEM) {
- if ((r = unit_add_dependency_by_name(UNIT(m), UNIT_AFTER, SPECIAL_SYSINIT_TARGET, NULL, true)) < 0)
+ if ((r = unit_add_dependency_by_name(UNIT(m), UNIT_AFTER, SPECIAL_FSCK_TARGET, NULL, true)) < 0)
return r;
if (!path_equal(m->where, "/"))
diff --git a/src/special.h b/src/special.h
index 9ffd3d8922..bbc64806bf 100644
--- a/src/special.h
+++ b/src/special.h
@@ -51,6 +51,7 @@
#define SPECIAL_BASIC_TARGET "basic.target"
#define SPECIAL_SOCKETS_TARGET "sockets.target"
#define SPECIAL_SYSINIT_TARGET "sysinit.target"
+#define SPECIAL_FSCK_TARGET "fsck.target"
#define SPECIAL_RESCUE_TARGET "rescue.target"
#define SPECIAL_EXIT_SERVICE "exit.service"
#define SPECIAL_EMERGENCY_TARGET "emergency.target"