]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: order systemd-firstboot.service before first-boot-complete.target
authorHarald Seiler <hws@denx.de>
Sun, 6 Sep 2020 19:23:36 +0000 (21:23 +0200)
committerHarald Seiler <hws@denx.de>
Mon, 19 Oct 2020 14:28:22 +0000 (16:28 +0200)
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.

units/systemd-firstboot.service

index 9f5c7101cd50d846e0978a895245b74599383231..e17fef7b36eacdfb3da33d091ecd6a969efa1545 100644 (file)
@@ -13,7 +13,8 @@ Documentation=man:systemd-firstboot(1)
 DefaultDependencies=no
 Conflicts=shutdown.target
 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
 ConditionFirstBoot=yes