Problem keyboard layout in boot with LUKS

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.

Solution 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.

Solution 2

I use luks encryption for home and root files.
If it can help some guys

vim /etc/vconsole.conf

Add this


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

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply