summaryrefslogtreecommitdiff
path: root/src/core/automount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-15 11:13:45 +0200
committerGitHub <noreply@github.com>2020-05-15 11:13:45 +0200
commite1e214c56bf7b369d4924a61db9268ed24e3c973 (patch)
tree016fbc26769ea136b8132e4293742217d1676a90 /src/core/automount.c
parent214ffe64fc4ef0e9999abf95f8cbe97ded39e464 (diff)
parent5a7c4f4f3b3bc8f01fc2fa6ab55ed0b6665508e5 (diff)
downloadsystemd-e1e214c56bf7b369d4924a61db9268ed24e3c973.tar.gz
Merge pull request #15265 from fbuihuu/mount-fixes
Mount fixes
Diffstat (limited to 'src/core/automount.c')
-rw-r--r--src/core/automount.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/automount.c b/src/core/automount.c
index 54711e2b7f..566b56eb34 100644
--- a/src/core/automount.c
+++ b/src/core/automount.c
@@ -152,6 +152,10 @@ static int automount_add_default_dependencies(Automount *a) {
if (!MANAGER_IS_SYSTEM(UNIT(a)->manager))
return 0;
+ r = unit_add_dependency_by_name(UNIT(a), UNIT_BEFORE, SPECIAL_LOCAL_FS_TARGET, true, UNIT_DEPENDENCY_DEFAULT);
+ if (r < 0)
+ return r;
+
r = unit_add_dependency_by_name(UNIT(a), UNIT_AFTER, SPECIAL_LOCAL_FS_PRE_TARGET, true, UNIT_DEPENDENCY_DEFAULT);
if (r < 0)
return r;