]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(dracut-init.sh): force to perform the actual action
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sun, 14 Apr 2024 13:27:38 +0000 (09:27 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sat, 20 Apr 2024 21:41:50 +0000 (17:41 -0400)
modules.d/98dracut-systemd/dracut-emergency.sh
modules.d/99base/dracut-lib.sh

index 918b8f18bead74ad5523994092cc8d89bac371ea..bc396fcc5b241b28eda01f7c2433fb3fd03b7f29 100755 (executable)
@@ -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
 
index 351cc4a9ab6fed1453108c8a48fedddb95aad8bf..e83ee94fc435e11ad2c003c49a949137268183c6 100755 (executable)
@@ -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
 }