summaryrefslogtreecommitdiff
path: root/units/initrd-switch-root.target
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-07-29 16:25:59 +0200
committerLennart Poettering <lennart@poettering.net>2020-07-29 16:32:03 +0200
commit78490efca3a2854f9ac75f25eb8114432f555f2f (patch)
treee7ce3426875129742e2868ec6d9f7edb7fa3019e /units/initrd-switch-root.target
parent0cfb490fe9e3af39f7d7f9431b9fee9b5c98b992 (diff)
downloadsystemd-78490efca3a2854f9ac75f25eb8114432f555f2f.tar.gz
units: upgrade initrd check Conditions to Asserts
It's a bug if an initrd unit is run on the host. Hence let's upgrade the conditions to asserts.
Diffstat (limited to 'units/initrd-switch-root.target')
-rw-r--r--units/initrd-switch-root.target2
1 files changed, 1 insertions, 1 deletions
diff --git a/units/initrd-switch-root.target b/units/initrd-switch-root.target
index ea4f02618f..2723b5af7f 100644
--- a/units/initrd-switch-root.target
+++ b/units/initrd-switch-root.target
@@ -9,7 +9,7 @@
[Unit]
Description=Switch Root
-ConditionPathExists=/etc/initrd-release
+AssertPathExists=/etc/initrd-release
DefaultDependencies=no
Requires=initrd-switch-root.service
Before=initrd-switch-root.service