From a1e378714869fcda7ce30df81a8b5f1e47636ad7 Mon Sep 17 00:00:00 2001 From: Harald Seiler Date: Sun, 6 Sep 2020 21:23:36 +0200 Subject: [PATCH] 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. --- units/systemd-firstboot.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/units/systemd-firstboot.service b/units/systemd-firstboot.service index 9f5c7101cd..e17fef7b36 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