From 9752201501e0ede608351f4028daefd8219922f7 Mon Sep 17 00:00:00 2001 From: Nicolas Porcel Date: Wed, 20 Jun 2018 02:49:34 +0200 Subject: [PATCH] dracut: force shutdown The shutdown binary is actually provided by runit and expects the runit init to be running. This is not the case in the initramfs. Forcing the shutdown, halt or reboot is necessary to ignore this requirement. --- srcpkgs/dracut/patches/force_poweroff.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/dracut/patches/force_poweroff.patch diff --git a/srcpkgs/dracut/patches/force_poweroff.patch b/srcpkgs/dracut/patches/force_poweroff.patch new file mode 100644 index 00000000000..dd9362162c0 --- /dev/null +++ b/srcpkgs/dracut/patches/force_poweroff.patch @@ -0,0 +1,19 @@ +diff --git modules.d/99base/dracut-lib.sh modules.d/99base/dracut-lib.sh +index 99cb9dbc..3df77257 100755 +--- modules.d/99base/dracut-lib.sh ++++ modules.d/99base/dracut-lib.sh +@@ -1154,11 +1154,11 @@ 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 + } +