Enable Belgian keyboard for LUKS-LVM passphrase in OpenSUSE Leap 15.1

Enable Belgian keyboard for LUKS-LVM passphrase in OpenSUSE Leap 15.1

I have a new notebook from a German manufacturer with a Belgian keyboard and OpenSUSE Leap 15.1. The notebook was delivered with a temporary passphrase that you can change after completing the OS setup. After finishing the setup (including selecting a Belgian keyboard layout) and rebooting, the passphrase was not accepted until I connected a German keyboard to enter it.

How can I change the system to accept a Belgian keyboard instead of German one? The passphrase contains dashes and underscores, which German keyboards map to other keys than US keyboards, so I assume the system can be set up to accept non-US keyboards.

I have looked at other LUKS passphrase questions, but I still don't know where to start.

Even though the question is formally about enabling a Belgian keyboard layout, the solution would have wider applicability, since there are many other keyboard layouts other than US querty and German quertz.

PS: I don't have this issue on my old notebook, which came from a different German reseller; it has a French keyboard and is running MX Linux.


Update in response to fra-san's comment.

The output of lsblk -fs is:

 NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
 system-root            414.6G      2% /
 └─crypt_dev_nvme0n1p3
   └─nvme0n1p3
     └─nvme0n1
 system-swap                           [SWAP]
 └─crypt_dev_nvme0n1p3
   └─nvme0n1p3
     └─nvme0n1
 nvme0n1p1              337.5M      26% /boot
   └─nvme0n1
 nvme0n1p2              510.9M       0% /boot/efi
   └─nvme0n1

I had tried sudo cryptsetup luksAddKey crypt_dev_nvme0n1p3 and sudo cryptsetup luksAddKey nvme0n1p3, not knowing I needed to use a full path. (I'm still not sure what the full path should be, after trying a few variations begining with dev/....)

Respuesta1

Such issues with the keyboard layout not meeting my expectations when entering the luks password during boot keep reappearing in Leap15 for me. Therefore here my answer:

Edit KEYMAP= in /etc/vconsole.conf to match one listed in /usr/share/X11/xkb/symbols. Example:

KEYMAP=us
FONT=eurlatgr.psfu
FONT_MAP=
FONT_UNIMAP=

Run sudo mkinitrd afterwards to apply the changes.

Based on a suse forum thread.

información relacionada