summaryrefslogtreecommitdiff
path: root/units/initrd-switch-root.service
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-09-14 12:39:10 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-09-15 14:59:11 +0200
commit9810e419425263bde86787bc21251f1ad3c35628 (patch)
tree1ba29f7dd8a3e3014a992677688f995400408c7b /units/initrd-switch-root.service
parentd01d9197f50667491eab287d1f0f1e62c85e1e50 (diff)
downloadsystemd-9810e419425263bde86787bc21251f1ad3c35628.tar.gz
units: reorder/split unit dependency blocks
The block is reordered and split to have: 1. description + documentation 2. (optionally) conditions 3. all the dependencies I think it's easier to read the units this way. Also, the Conflicts+Before is seperated out to separate lines. The ordering dependency is "fake", because it could just as well be After=, we are adding it to force ordering wrt. shutdown.target, and it plays a different role than the other Before=, which are about a real ordering on boot.
Diffstat (limited to 'units/initrd-switch-root.service')
-rw-r--r--units/initrd-switch-root.service6
1 files changed, 4 insertions, 2 deletions
diff --git a/units/initrd-switch-root.service b/units/initrd-switch-root.service
index e3d6926711..9914d26408 100644
--- a/units/initrd-switch-root.service
+++ b/units/initrd-switch-root.service
@@ -9,11 +9,13 @@
[Unit]
Description=Switch Root
-DefaultDependencies=no
+
AssertPathExists=/etc/initrd-release
+
+DefaultDependencies=no
+AllowIsolate=yes
OnFailure=emergency.target
OnFailureJobMode=replace-irreversibly
-AllowIsolate=yes
[Service]
Type=oneshot