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.
- How to use Dvorak keyboard layout in GRUB2 LUKS passphrase prompt? assumes the system has
/etc/mkinitcpio.conffile, which is not present on my system;
- Problem keyboard layout in boot with LUKS also assumes the system has
- unable to open luks encrypted device (wrong password): I get stuck when I enter
sudo cryptsetup luksAddKey <device>: I get the error message
Device <device> doesn't exist or access denied. (I looked up the
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