From 79675bcb1a3c926f30415f8fa30c8bee8c9360b9 Mon Sep 17 00:00:00 2001 From: Philipp David Date: Sun, 31 Jul 2022 16:27:01 +0200 Subject: shutdown.d/90-kexec.sh: only try to run kexec on reboot --- shutdown.d/90-kexec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shutdown.d/90-kexec.sh b/shutdown.d/90-kexec.sh index 8b3eb93..62487f9 100644 --- a/shutdown.d/90-kexec.sh +++ b/shutdown.d/90-kexec.sh @@ -1,5 +1,5 @@ if [ -z "$VIRTUALIZATION" ]; then - if [ -e /run/runit/reboot ] && command -v kexec >/dev/null; then + if [ -x /run/runit/reboot ] && command -v kexec >/dev/null; then msg "Triggering kexec..." kexec -e 2>/dev/null # not reached when kexec was successful. -- cgit 1.4.1