From 1d646aed6505c3f3161a57edb55d89dca7690605 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 19 May 2026 15:07:32 +0200 Subject: [PATCH] firstboot: prefill keymap question with EFI provided info --- src/firstboot/firstboot.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index ea36b91064..470caf8283 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -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,