]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/mount: add implicit unit dependencies even if when mount unit is generated from...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 29 Aug 2021 12:20:43 +0000 (21:20 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 29 Sep 2021 15:25:13 +0000 (17:25 +0200)
Hopefully fixes #20566.

src/core/mount.c

index 35b56426d4106b13bec5dc53fa974f5a633600cc..c4d7f981c6d1e08a2cf752150798f331156f84d2 100644 (file)
@@ -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. */