diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-15 06:23:34 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-02-16 15:49:30 +0100 |
commit | dbfc096095cb741f5345be0dc6508628008c46d7 (patch) | |
tree | 6cca7df39a5ecfb47a670f28bad46daa6a9e5399 /src/core/mount.c | |
parent | man: Fix spelling mistake (diff) | |
download | systemd-dbfc096095cb741f5345be0dc6508628008c46d7.tar.xz systemd-dbfc096095cb741f5345be0dc6508628008c46d7.zip |
core/mount: fix default target for /sysusr/usr and its child
Follow-up for 29a24ab28e9790680348b1ffab653a321fa49a67.
Diffstat (limited to '')
-rw-r--r-- | src/core/mount.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index f47c511da6..993dce5118 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -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; |