diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-08-29 21:20:43 +0900 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-09-29 17:25:13 +0200 |
commit | aebff2e7ce209fc2d75b894a3ae8b80f6f36ec11 (patch) | |
tree | bcbd8909f6096aa620238ba22f69505d65100524 /src/core/mount.c | |
parent | 209abeac6dcf39f8f391335aee831a15142fd2ac (diff) | |
download | systemd-aebff2e7ce209fc2d75b894a3ae8b80f6f36ec11.tar.gz |
core/mount: add implicit unit dependencies even if when mount unit is generated from /proc/self/mountinfo
Hopefully fixes #20566.
Diffstat (limited to 'src/core/mount.c')
-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 35b56426d4..c4d7f981c6 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -1575,6 +1575,10 @@ static int mount_setup_new_unit( if (r < 0) return r; + r = mount_add_non_exec_dependencies(MOUNT(u)); + if (r < 0) + return r; + /* This unit was generated because /proc/self/mountinfo reported it. Remember this, so that by the time we load * the unit file for it (and thus add in extra deps right after) we know what source to attributes the deps * to. */ |