summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorJon Severinsson <jon@severinsson.net>2014-07-22 00:39:13 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-14 18:53:32 +0200
commitb24de9d21d30245b66d8d6b869c575b48ddb6068 (patch)
tree828d8b7a771d474fc72f0effdddafce8a346bc15 /src/core
parente830abd5ff4fe80d73c7c9455813fe1356d072f2 (diff)
core: do not add default dependencies to /usr mount unit
This makes no difference if /usr was mounted in the initrd, and brings the behaviour of legacy systems closer to those with a propper initrd.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/mount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/mount.c b/src/core/mount.c
index 102bbef91b..39a9aaf2a0 100644
--- a/src/core/mount.c
+++ b/src/core/mount.c
@@ -380,7 +380,8 @@ static int mount_add_default_dependencies(Mount *m) {
if (!p)
return 0;
- if (path_equal(m->where, "/"))
+ if (path_equal(m->where, "/") ||
+ path_equal(m->where, "/usr"))
return 0;
if (mount_is_network(p)) {