firstboot: prefill keymap question with EFI provided info

This commit is contained in:
Lennart Poettering
2026-05-20 16:38:18 +02:00
parent a80024e96d
commit 1d646aed65
+4 -1
View File
@@ -456,10 +456,13 @@ static int prompt_keymap(int rfd, sd_varlink **mute_console_link) {
print_welcome(rfd, mute_console_link);
_cleanup_free_ char *prefill = NULL;
(void) vconsole_keymap_from_efi(&prefill);
return prompt_loop(
"Please enter the new keymap name or number",
GLYPH_KEYBOARD,
/* prefill= */ NULL,
prefill,
kmaps,
/* accepted= */ NULL,
/* ellipsize_percentage= */ 60,