From 24040b26c4e6b7169bfec8c6a699af63c535df59 Mon Sep 17 00:00:00 2001 From: dennis_chiu Date: Wed, 3 Jul 2024 17:22:57 +0800 Subject: [PATCH] remove exec from the platform_reboot call when executing reboot in kdump kernel --- scripts/reboot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/reboot b/scripts/reboot index 2d1cd8a8..63f4939b 100755 --- a/scripts/reboot +++ b/scripts/reboot @@ -14,7 +14,7 @@ if [ -e $VMCORE_FILE -a -s $VMCORE_FILE ]; then sync PLATFORM=$(grep -oP 'sonic_platform=\K\S+' /proc/cmdline) if [ ! -z "${PLATFORM}" -a -x ${DEVPATH}/${PLATFORM}/${PLAT_REBOOT} ]; then - exec ${DEVPATH}/${PLATFORM}/${PLAT_REBOOT} + ${DEVPATH}/${PLATFORM}/${PLAT_REBOOT} fi # If no platform-specific reboot tool, just run /sbin/reboot /sbin/reboot