From: Laszlo Gombos Date: Sun, 14 Apr 2024 13:27:38 +0000 (-0400) Subject: fix(dracut-init.sh): force to perform the actual action X-Git-Tag: 102~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffeb32b2d2caecc2111bfd93b6919dc4f09d3c2d;p=thirdparty%2Fdracut-ng.git fix(dracut-init.sh): force to perform the actual action --- diff --git a/modules.d/98dracut-systemd/dracut-emergency.sh b/modules.d/98dracut-systemd/dracut-emergency.sh index 918b8f18b..bc396fcc5 100755 --- a/modules.d/98dracut-systemd/dracut-emergency.sh +++ b/modules.d/98dracut-systemd/dracut-emergency.sh @@ -46,13 +46,13 @@ fi case "$_emergency_action" in reboot) - reboot || exit 1 + reboot -f || exit 1 ;; poweroff) - poweroff || exit 1 + poweroff -f || exit 1 ;; halt) - halt || exit 1 + halt -f || exit 1 ;; esac diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index 351cc4a9a..e83ee94fc 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -985,13 +985,13 @@ emergency_shell() { case "$_emergency_action" in reboot) - reboot || exit 1 + reboot -f || exit 1 ;; poweroff) - poweroff || exit 1 + poweroff -f || exit 1 ;; halt) - halt || exit 1 + halt -f || exit 1 ;; esac }