diff options
author | Harald Seiler <hws@denx.de> | 2020-09-06 21:23:36 +0200 |
---|---|---|
committer | Harald Seiler <hws@denx.de> | 2020-10-19 16:28:22 +0200 |
commit | a1e378714869fcda7ce30df81a8b5f1e47636ad7 (patch) | |
tree | 27323ea1eebb35e5ba74b960caca389bb4eac9c8 /units | |
parent | f4466bdbf9c39e9b303809f93c04a80795606503 (diff) | |
download | systemd-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.service | 3 |
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 |