Skip to content

Commit

Permalink
Fix kexec_unload failure on secure boot enabled platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekrnv authored Jul 19, 2024
1 parent f2b7621 commit ecb359f
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 ecb359f

Please sign in to comment.