units: order systemd-firstboot.service before first-boot-complete.target
Make sure systemd-firstboot completes before reaching first-boot-complete.target and thus marking the first boot as completed. This way, it is guaranteed that systemd-firstboot has a chance to complete provisioning at least once, even in cases of the first boot getting aborted early.
This commit is contained in:
parent
f4466bdbf9
commit
a1e3787148
|
@ -13,7 +13,8 @@ Documentation=man:systemd-firstboot(1)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
After=systemd-remount-fs.service
|
After=systemd-remount-fs.service
|
||||||
Before=systemd-sysusers.service sysinit.target shutdown.target
|
Before=systemd-sysusers.service sysinit.target first-boot-complete.target shutdown.target
|
||||||
|
Wants=first-boot-complete.target
|
||||||
ConditionPathIsReadWrite=/etc
|
ConditionPathIsReadWrite=/etc
|
||||||
ConditionFirstBoot=yes
|
ConditionFirstBoot=yes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue