Skip to content

Commit 317e649

Browse files
authored
Fix kexec_unload failure on secure boot enabled platforms (#3439)
1 parent 557d688 commit 317e649

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/fast-reboot

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function clear_boot()
147147
# common_clear
148148
debug "${REBOOT_TYPE} failure ($?) cleanup ..."
149149

150-
/sbin/kexec -u || /bin/true
150+
/sbin/kexec -u -a || /bin/true
151151

152152
teardown_control_plane_assistant
153153

@@ -519,7 +519,7 @@ function unload_kernel()
519519
{
520520
# Unload the previously loaded kernel if any loaded
521521
if [[ "$(cat /sys/kernel/kexec_loaded)" -eq 1 ]]; then
522-
/sbin/kexec -u
522+
/sbin/kexec -u -a
523523
fi
524524
}
525525

0 commit comments

Comments
 (0)