summaryrefslogtreecommitdiffstats
path: root/units/local-fs.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/local-fs.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/local-fs.target')
-rw-r--r--units/local-fs.target2
1 files changed, 2 insertions, 0 deletions
diff --git a/units/local-fs.target b/units/local-fs.target
index da3683e948..6ba4930087 100644
--- a/units/local-fs.target
+++ b/units/local-fs.target
@@ -13,3 +13,5 @@ Documentation=man:systemd.special(7)
DefaultDependencies=no
Conflicts=shutdown.target
After=local-fs-pre.target
+OnFailure=emergency.target
+OnFailureJobMode=replace-irreversibly