diff options
Diffstat (limited to 'src/automount.c')
-rw-r--r-- | src/automount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/automount.c b/src/automount.c index 26fec45107..934aa5f35d 100644 --- a/src/automount.c +++ b/src/automount.c @@ -201,7 +201,8 @@ static int automount_load(Unit *u) { if ((r = unit_add_dependency(u, UNIT_BEFORE, UNIT(a->mount), true)) < 0) return r; - if (a->meta.default_dependencies) + if (a->meta.default_dependencies && + a->meta.manager->running_as == MANAGER_SYSTEM) if ((r = unit_add_two_dependencies_by_name(UNIT(a), UNIT_BEFORE, UNIT_CONFLICTS, SPECIAL_UMOUNT_TARGET, NULL, true)) < 0) return r; } |