Skip to content

Commit

Permalink
shared/generator: Ensure growfs unit runs after repart
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
undef authored and poettering committed Aug 8, 2022
1 parent 8082140 commit 7b45d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? " " : "",
Expand Down

0 comments on commit 7b45d6b

Please sign in to comment.