summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorHarald Seiler <hws@denx.de>2020-09-06 21:23:36 +0200
committerHarald Seiler <hws@denx.de>2020-10-19 16:28:22 +0200
commita1e378714869fcda7ce30df81a8b5f1e47636ad7 (patch)
tree27323ea1eebb35e5ba74b960caca389bb4eac9c8 /units
parentf4466bdbf9c39e9b303809f93c04a80795606503 (diff)
downloadsystemd-a1e378714869fcda7ce30df81a8b5f1e47636ad7.tar.gz
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.
Diffstat (limited to 'units')
-rw-r--r--units/systemd-firstboot.service3
1 files changed, 2 insertions, 1 deletions
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