]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/generator: Ensure growfs unit runs after repart
authorundef <gitlab@undef.tools>
Sat, 6 Aug 2022 05:47:03 +0000 (05:47 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Aug 2022 13:20:36 +0000 (15:20 +0200)
When deploying an image using systemd-repart and systemd-growfs one
should have the image expanded entirely and ready to use after the first
boot. This ensures that growfs does not occur before repart, thus
requiring a second boot.

src/shared/generator.c

index 12170d3642b25ee5c2e591b47aaa6af26ad7e736..b4efcf6d0bd6e54c01dc79985a046e62b9bdf245 100644 (file)
@@ -537,7 +537,7 @@ int generator_hook_up_growfs(
                 "DefaultDependencies=no\n"
                 "BindsTo=%%i.mount\n"
                 "Conflicts=shutdown.target\n"
-                "After=%%i.mount\n"
+                "After=systemd-repart.service %%i.mount\n"
                 "Before=shutdown.target%s%s\n",
                 program_invocation_short_name,
                 target ? " " : "",