From a62f81d2eea53683504639a12cd9c7a1e8bbd3ca Mon Sep 17 00:00:00 2001 From: mintsuki Date: Wed, 12 Jun 2024 02:00:53 +0200 Subject: [PATCH] lib/panic: efi: Disallow returning to menu after exiting boot services --- common/lib/panic.s2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lib/panic.s2.c b/common/lib/panic.s2.c index c481d2db..403d7dfe 100644 --- a/common/lib/panic.s2.c +++ b/common/lib/panic.s2.c @@ -48,6 +48,8 @@ noreturn void panic(bool allow_menu, const char *fmt, ...) { if ( #if defined (BIOS) stage3_loaded == true && +#elif defined (UEFI) + efi_boot_services_exited == false && #endif allow_menu == true) { print("Press a key to return to menu.");