Skip to content

Commit 42bb1cc

Browse files
committed
menu: Make graphics: no an alias for serial: yes on EFI
1 parent eb98dad commit 42bb1cc

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CONFIG.md

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

common/menu.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,15 @@ noreturn void _menu(bool first_run) {
10471047
#endif
10481048
serial_str != NULL && strcmp(serial_str, "yes") == 0;
10491049

1050+
#if defined (UEFI)
1051+
if (!serial) {
1052+
char *graphics_str = config_get_value(NULL, 0, "GRAPHICS");
1053+
if (graphics_str != NULL && strcmp(graphics_str, "no") == 0) {
1054+
serial = true;
1055+
}
1056+
}
1057+
#endif
1058+
10501059
#if defined (BIOS)
10511060
if (serial) {
10521061
char *baudrate_s = config_get_value(NULL, 0, "SERIAL_BAUDRATE");

0 commit comments

Comments
 (0)