menu: Make graphics: no an alias for serial: yes on EFI

This commit is contained in:
Mintsuki
2026-04-12 01:12:50 +02:00
parent 12d3dbf7de
commit f3b031e37d
2 changed files with 11 additions and 2 deletions

View File

@@ -97,8 +97,8 @@ Miscellaneous:
named `Arch Linux`). If unspecified, it is `1`.
* `remember_last_entry` - If set to `yes`, remember last booted entry.
(UEFI only).
* `graphics` - If set to `no`, force CGA text mode for the boot menu, else use
a video mode. Ignored with Limine UEFI.
* `graphics` - If set to `no`, force text mode for the boot menu, else use
a video mode.
* `wallpaper` - Path to a file to use as a wallpaper. BMP, PNG, and JPEG
formats are supported. There can be multiple of this option, in which case
the wallpaper will be randomly selected from the provided options.

View File

@@ -1009,6 +1009,15 @@ noreturn void _menu(bool first_run) {
#endif
serial_str != NULL && strcmp(serial_str, "yes") == 0;
#if defined (UEFI)
if (!serial) {
char *graphics_str = config_get_value(NULL, 0, "GRAPHICS");
if (graphics_str != NULL && strcmp(graphics_str, "no") == 0) {
serial = true;
}
}
#endif
#if defined (BIOS)
if (serial) {
char *baudrate_s = config_get_value(NULL, 0, "SERIAL_BAUDRATE");