Skip to content

Commit

Permalink
Fix kexec_unload failure on secure boot enabled platforms (#3439)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekrnv authored and mssonicbld committed Aug 22, 2024
1 parent 8cf1c66 commit b8275e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function clear_boot()
# common_clear
debug "${REBOOT_TYPE} failure ($?) cleanup ..."

/sbin/kexec -u || /bin/true
/sbin/kexec -u -a || /bin/true

teardown_control_plane_assistant

Expand Down Expand Up @@ -519,7 +519,7 @@ function unload_kernel()
{
# Unload the previously loaded kernel if any loaded
if [[ "$(cat /sys/kernel/kexec_loaded)" -eq 1 ]]; then
/sbin/kexec -u
/sbin/kexec -u -a
fi
}
Expand Down

0 comments on commit b8275e1

Please sign in to comment.