I have installed Arch Linux with LUKS on a btrfs file system.
When logging in,
I can’t mount my filesystem on /dev/sda2 because the keyboard is US (I need a French key map).
I try change /etc/vconsole.conf to FR and generate locale-gen but the keyboard don’t change in next boot.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Your /etc/mkinitcpio.conf needs to look like this:
HOOKS=”… keyboard keymap encrypt…”
You need to load the keymap during boot, which is done by an mkinitcpio hook. Make sure that the keymap or sd-vconsole hook (depending on whether you use sd-* style hooks) occurs before encrypt/sd-encrypt and regenerate your initrd.
Method 2
I use luks encryption for home and root files.
If it can help some guys
vim /etc/vconsole.conf
Add this
KEYMAP=fr-latin9
and also check this
vim /etc/mkinitcpio.conf
It MUST be in the good order
HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck)
Regenerate initrd
mkinitcpio -P
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0