[systemd-devel] [PATCH 1/2] core: do not add default dependencies to /usr mount unit

Jon Severinsson jon at severinsson.net
Mon Jul 21 15:39:13 PDT 2014


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.
---
 src/core/mount.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/core/mount.c b/src/core/mount.c
index 102bbef..39a9aaf 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)) {
-- 
2.0.1



More information about the systemd-devel mailing list