Skip to content

Commit

Permalink
Fix kexec_unload failure on secure boot enabled platforms (sonic-net#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekrnv authored Aug 5, 2024
1 parent 557d688 commit 317e649
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 317e649

Please sign in to comment.