From 712bdca8020b72edb77db8637924fc0ebb8e825a Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Thu, 7 Jul 2022 17:46:22 -0400 Subject: [PATCH] 35coreos-multipath: enter emergency.target if multipathd bootfs times out This should be the default in almost all our initramfs systemd units. Otherwise we'll keep limping on and other spurious errors might mislead users. --- .../modules.d/35coreos-multipath/coreos-multipath-wait.target | 3 +++ 1 file changed, 3 insertions(+) diff --git a/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-multipath/coreos-multipath-wait.target b/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-multipath/coreos-multipath-wait.target index b003f4d94b..e0fd500cd4 100644 --- a/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-multipath/coreos-multipath-wait.target +++ b/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-multipath/coreos-multipath-wait.target @@ -8,6 +8,9 @@ After=dev-disk-by\x2dlabel-dm\x2dmpath\x2dboot.device Requires=multipathd.service After=multipathd.service +OnFailure=emergency.target +OnFailureJobMode=isolate + # This is already enforced transitively by coreos-gpt-setup.service, but # let's be more explicit and list it directly here too. Before=coreos-ignition-setup-user.service