Setup custom keyboard layout for LUKS unlock

As LUKS unlock screen always uses en-US keyboard layout, entering the password might be difficult if you have a different locale. Before you had to manually edit /etc/dracut.conf.d/keyboard.conf & /etc/vconsole.conf. Since Fedora 42 you can just run the following command:

Set the keyboard layout to the french keyboard:

sudo rpm-ostree kargs --append=vconsole.keymap=fr

Replace an existing layout by another:

sudo rpm-ostree kargs --replace=vconsole.keymap=de

On new Fedora 42 installs, the locale is set correctly during install.

4 Likes

This is actually duplicate of few mounts old thread Unlock encrypted disk at boot time only supports English keyboard.

Still.. this would be nice to be documented in Blufin official documentation, so it will be easier in future to point to official docs.

1 Like

I couldn’t find that thread, probably because I searched for “LUKS”^^

This issue is was fixed in Fedora 42, so it’s probably enough to have the forum posts for those that upgraded from 41 and older.

1 Like