Skip to content

Commit 7a604c5

Browse files
authored
update fast-reboot (sonic-net#2728)
1 parent 9f83ace commit 7a604c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/fast-reboot

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ PLATFORM=$(sonic-cfggen -H -v DEVICE_METADATA.localhost.platform)
2323
PLATFORM_PLUGIN="${REBOOT_TYPE}_plugin"
2424
LOG_SSD_HEALTH="/usr/local/bin/log_ssd_health"
2525
PLATFORM_FWUTIL_AU_REBOOT_HANDLE="platform_fw_au_reboot_handle"
26+
PLATFORM_REBOOT_PRE_CHECK="platform_reboot_pre_check"
2627
SSD_FW_UPDATE="ssd-fw-upgrade"
2728
SSD_FW_UPDATE_BOOT_OPTION=no
2829
TAG_LATEST=yes
@@ -179,6 +180,10 @@ function initialize_pre_shutdown()
179180
180181
function request_pre_shutdown()
181182
{
183+
if [ -x ${DEVPATH}/${PLATFORM}/${PLATFORM_REBOOT_PRE_CHECK} ]; then
184+
debug "Requesting platform reboot pre-check ..."
185+
${DEVPATH}/${PLATFORM}/${PLATFORM_REBOOT_PRE_CHECK} ${REBOOT_TYPE}
186+
fi
182187
debug "Requesting pre-shutdown ..."
183188
STATE=$(timeout 5s docker exec syncd /usr/bin/syncd_request_shutdown --pre &> /dev/null; if [[ $? == 124 ]]; then echo "timed out"; fi)
184189
if [[ x"${STATE}" == x"timed out" ]]; then

0 commit comments

Comments
 (0)