]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/mount: fix default target for /sysusr/usr and its child
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 Feb 2023 05:23:34 +0000 (14:23 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 16 Feb 2023 14:49:30 +0000 (14:49 +0000)
Follow-up for 29a24ab28e9790680348b1ffab653a321fa49a67.

src/core/mount.c

index f47c511da6033de7463112cf93e81b3cf5335fcf..993dce5118e53d7d18deabeed42e818d51372efb 100644 (file)
@@ -490,6 +490,10 @@ static int mount_add_default_ordering_dependencies(Mount *m, MountParameters *p,
                 after = NULL;
                 before = isempty(e) ? SPECIAL_INITRD_ROOT_FS_TARGET : SPECIAL_INITRD_FS_TARGET;
 
+        } else if (in_initrd() && path_startswith(m->where, "/sysusr/usr")) {
+                after = NULL;
+                before = SPECIAL_INITRD_USR_FS_TARGET;
+
         } else if (mount_is_network(p)) {
                 after = SPECIAL_REMOTE_FS_PRE_TARGET;
                 before = SPECIAL_REMOTE_FS_TARGET;