summaryrefslogtreecommitdiffstats
path: root/units/systemd-firstboot.service
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-09-15 15:54:18 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-05-23 12:39:16 +0200
commit4e66876dfc9ab1b9b7063988d7f3689568c76cfe (patch)
tree4e2d33bf9e46a956bc5635f140aacdec5592d2b2 /units/systemd-firstboot.service
parentupdate TODO (diff)
downloadsystemd-4e66876dfc9ab1b9b7063988d7f3689568c76cfe.tar.xz
systemd-4e66876dfc9ab1b9b7063988d7f3689568c76cfe.zip
units: do more reordering of ordering config
No functional change, just a cleanup to make the subsequent changes easier to see. This is a continuation of 9810e419425263bde86787bc21251f1ad3c35628 > The block is reordered and split to have: > 1. description + documentation > 2. (optionally) conditions > 3. all the dependencies The dependencies for shutdown.target are listed separately because they are the other deps are for startup, and shutdown.target only matter much later.
Diffstat (limited to 'units/systemd-firstboot.service')
-rw-r--r--units/systemd-firstboot.service11
1 files changed, 7 insertions, 4 deletions
diff --git a/units/systemd-firstboot.service b/units/systemd-firstboot.service
index 2e57b064c1..58f3eeb679 100644
--- a/units/systemd-firstboot.service
+++ b/units/systemd-firstboot.service
@@ -10,13 +10,16 @@
[Unit]
Description=First Boot Wizard
Documentation=man:systemd-firstboot(1)
+
+ConditionPathIsReadWrite=/etc
+ConditionFirstBoot=yes
+
DefaultDependencies=no
-Conflicts=shutdown.target
After=systemd-remount-fs.service
-Before=systemd-sysusers.service systemd-vconsole-setup.service sysinit.target first-boot-complete.target shutdown.target
+Before=systemd-sysusers.service systemd-vconsole-setup.service sysinit.target first-boot-complete.target
Wants=first-boot-complete.target
-ConditionPathIsReadWrite=/etc
-ConditionFirstBoot=yes
+Conflicts=shutdown.target
+Before=shutdown.target
[Service]
Type=oneshot