summaryrefslogtreecommitdiff
path: root/units/initrd-switch-root.service
diff options
context:
space:
mode:
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