menu: Use fallback terminal instead of panicking on gterm_init() fail
This commit is contained in:
parent
6cbb9c4577
commit
cc8ff90865
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user