From 317e649514c9b205849ffb5ea96a6a233e38290c Mon Sep 17 00:00:00 2001 From: Vivek Date: Mon, 5 Aug 2024 09:40:18 -0700 Subject: [PATCH] Fix kexec_unload failure on secure boot enabled platforms (#3439) --- scripts/fast-reboot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/fast-reboot b/scripts/fast-reboot index 2eeca11112..e183c34219 100755 --- a/scripts/fast-reboot +++ b/scripts/fast-reboot @@ -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 @@ -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 }