From: undef Date: Sat, 6 Aug 2022 05:47:03 +0000 (+0000) Subject: shared/generator: Ensure growfs unit runs after repart X-Git-Tag: v252-rc1~500 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b45d6b6f64e9f5c006bdf31559a77294dbe00ad;p=thirdparty%2Fsystemd.git shared/generator: Ensure growfs unit runs after repart 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. --- diff --git a/src/shared/generator.c b/src/shared/generator.c index 12170d3642b..b4efcf6d0bd 100644 --- a/src/shared/generator.c +++ b/src/shared/generator.c @@ -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 ? " " : "",