Keyboard layout is always English when unlocking encrypted drives on Silverblue/Kinoite/Sericea

Problem

When using full disk encryption, the user is asked to provide the password for the disk during boot.

The keyboard layout used at this point in time of the boot process does not respect the choice of layout that a user may have selected during the installation process or have configured on their system.

The keyboard layout is always set to English (default layout) and as the user will be entering the password thinking that another layout is in effect, it will not be able to unlock the LUKS encrypted drives.

Cause

The Anaconda installer does not yet know to tell rpm-ostree to track the keyboard layout config and to add it to the initrd.

Related Issues

Bugzilla report: #1890085

Silverblue issue: LUKS unlock screen always uses en-US keyboard layout · Issue #3 · fedora-silverblue/issue-tracker · GitHub

Workarounds

In terminal, run:

sudo rpm-ostree initramfs-etc --track=/etc/vconsole.conf

and reboot.

3 Likes