From: Harald Seiler Date: Sun, 6 Sep 2020 19:23:36 +0000 (+0200) Subject: units: order systemd-firstboot.service before first-boot-complete.target X-Git-Tag: v247-rc1~44^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1e378714869fcda7ce30df81a8b5f1e47636ad7;p=thirdparty%2Fsystemd.git 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. --- diff --git a/units/systemd-firstboot.service b/units/systemd-firstboot.service index 9f5c7101cd5..e17fef7b36e 100644 --- a/units/systemd-firstboot.service +++ b/units/systemd-firstboot.service @@ -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