summaryrefslogtreecommitdiffstats
path: root/units/initrd.target
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-07-22 12:51:15 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-07-22 17:58:12 +0200
commit74c8e3c4e082121d8bc578d07d7a3843c61c2bd1 (patch)
tree53d05f0782effc0d3a475d9263dc10b362a58cd4 /units/initrd.target
parentcore/job: adjust whitespace and comment (diff)
downloadsystemd-74c8e3c4e082121d8bc578d07d7a3843c61c2bd1.tar.xz
systemd-74c8e3c4e082121d8bc578d07d7a3843c61c2bd1.zip
Revert "units: drop OnFailure= from .target units"
This reverts commit c7220ca8025e8dbded36131b23a502d975c45754. The removal was done as a reaction to the messages from systemd: initrd-root-fs.target: Requested dependency OnFailure=emergency.target ignored (target units cannot fail). initrd.target: Requested dependency OnFailure=emergency.target ignored (target units cannot fail). initrd-root-device.target: Requested dependency OnFailure=emergency.target ignored (target units cannot fail). initrd-fs.target: Requested dependency OnFailure=emergency.target ignored (target units cannot fail). local-fs.target: Requested dependency OnFailure=emergency.target ignored (target units cannot fail). ... But it seems that the messages themselves are wrong, and the units were OK.
Diffstat (limited to 'units/initrd.target')
-rw-r--r--units/initrd.target2
1 files changed, 2 insertions, 0 deletions
diff --git a/units/initrd.target b/units/initrd.target
index 30b3bd04d2..a74a447c91 100644
--- a/units/initrd.target
+++ b/units/initrd.target
@@ -10,6 +10,8 @@
[Unit]
Description=Initrd Default Target
Documentation=man:systemd.special(7)
+OnFailure=emergency.target
+OnFailureJobMode=replace-irreversibly
ConditionPathExists=/etc/initrd-release
Requires=basic.target
Wants=initrd-root-fs.target initrd-root-device.target initrd-fs.target initrd-parse-etc.service