diff options
Diffstat (limited to 'src/mount.c')
-rw-r--r-- | src/mount.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mount.c b/src/mount.c index 57c258f9f2..36caae3c81 100644 --- a/src/mount.c +++ b/src/mount.c @@ -368,7 +368,9 @@ static int mount_load(Unit *u) { if ((r = unit_add_default_cgroup(u)) < 0) return r; - if (m->meta.default_dependencies && !path_equal(m->where, "/")) + if (m->meta.default_dependencies && + m->meta.manager->running_as == MANAGER_SYSTEM && + !path_equal(m->where, "/")) if ((r = unit_add_two_dependencies_by_name(UNIT(m), UNIT_BEFORE, UNIT_CONFLICTS, SPECIAL_UMOUNT_TARGET, NULL, true)) < 0) return r; } |