From 7b45d6b6f64e9f5c006bdf31559a77294dbe00ad Mon Sep 17 00:00:00 2001 From: undef Date: Sat, 6 Aug 2022 05:47:03 +0000 Subject: [PATCH] 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. --- src/shared/generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ? " " : "", -- 2.47.3