menu: Use fallback terminal instead of panicking on gterm_init() fail

This commit is contained in:
mintsuki 2022-10-05 14:21:23 +02:00
parent 6cbb9c4577
commit cc8ff90865

View File

@ -568,7 +568,7 @@ static void menu_init_term(void) {
#if defined (BIOS) #if defined (BIOS)
vga_textmode_init(true); vga_textmode_init(true);
#elif defined (UEFI) #elif defined (UEFI)
panic(true, "menu: Failed to initialise terminal"); term_fallback();
#endif #endif
} }
} else { } else {
@ -857,7 +857,7 @@ timeout_aborted:
#if defined (BIOS) #if defined (BIOS)
vga_textmode_init(true); vga_textmode_init(true);
#elif defined (UEFI) #elif defined (UEFI)
panic(true, "menu: Failed to initialise terminal"); term_fallback();
#endif #endif
} }
} else { } else {