From: Jon Severinsson Date: Mon, 21 Jul 2014 22:39:13 +0000 (+0200) Subject: core: do not add default dependencies to /usr mount unit X-Git-Tag: v216~114 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=b24de9d21d30245b66d8d6b869c575b48ddb6068;ds=sidebyside 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. --- diff --git a/src/core/mount.c b/src/core/mount.c index 102bbef91..39a9aaf2a 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)) {