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,