From 6255384ac50fded27b9a5d29ac909112bb632c13 Mon Sep 17 00:00:00 2001 From: rajendra-dendukuri <47423477+rajendra-dendukuri@users.noreply.github.com> Date: Sun, 13 Dec 2020 13:22:18 -0500 Subject: [PATCH] [kdump]: Parse sonic_platform kernel command line parameter to read the platform identifier string (#1291) The platform identifier string is used in the reboot script to identify and execute any custom platform specific reboot script Signed-off-by: Rajendra Dendukuri --- scripts/reboot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/reboot b/scripts/reboot index 23092a56b62f..18d68f918aff 100755 --- a/scripts/reboot +++ b/scripts/reboot @@ -10,7 +10,7 @@ if [ -e $VMCORE_FILE -a -s $VMCORE_FILE ]; then echo "We have a /proc/vmcore, then we just kdump'ed" echo "User issued 'kdump' command [User: kdump, Time: ${REBOOT_TIME}]" > ${REBOOT_CAUSE_FILE} sync - PLATFORM=$(grep -oP 'platform=\K\S+' /proc/cmdline) + PLATFORM=$(grep -oP 'sonic_platform=\K\S+' /proc/cmdline) if [ ! -z "${PLATFORM}" -a -x ${DEVPATH}/${PLATFORM}/${PLAT_REBOOT} ]; then exec ${DEVPATH}/${PLATFORM}/${PLAT_REBOOT} fi