mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
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. (cherry picked from commit7b45d6b6f6
) (cherry picked from commit4fdca1ab9e
)
This commit is contained in:
parent
89a5b7752f
commit
d1166a9060
@ -536,7 +536,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 ? " " : "",
|
||||
|
Loading…
Reference in New Issue
Block a user