Skip to content

Commit 6255384

Browse files
[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 <[email protected]>
1 parent 0603c0b commit 6255384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/reboot

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [ -e $VMCORE_FILE -a -s $VMCORE_FILE ]; then
1010
echo "We have a /proc/vmcore, then we just kdump'ed"
1111
echo "User issued 'kdump' command [User: kdump, Time: ${REBOOT_TIME}]" > ${REBOOT_CAUSE_FILE}
1212
sync
13-
PLATFORM=$(grep -oP 'platform=\K\S+' /proc/cmdline)
13+
PLATFORM=$(grep -oP 'sonic_platform=\K\S+' /proc/cmdline)
1414
if [ ! -z "${PLATFORM}" -a -x ${DEVPATH}/${PLATFORM}/${PLAT_REBOOT} ]; then
1515
exec ${DEVPATH}/${PLATFORM}/${PLAT_REBOOT}
1616
fi

0 commit comments

Comments
 (0)