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.
Here is Solutions:
We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.
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.
I use luks encryption for home and root files.
If it can help some guys
and also check this
It MUST be in the good order
HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck)
Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂