How do I permanently change the keyboard layout for the passphrase prompt during startup?
Asked
Active
Viewed 6,910 times
5
-
What do you mean by startup? The lvm startup or the login startup or the bios startup or the grub startup? – Abhijit Navale Dec 25 '12 at 16:11
-
when it tries to unlock the lvm volumes. – Thomas Dec 25 '12 at 16:29
-
You can not. It uses standard US keyboard layout. – Abhijit Navale Dec 25 '12 at 16:30
-
What about modifying the initrd? – Thomas Dec 25 '12 at 16:32
-
Go through this link on your own risk. http://wiki.debian.org/Keyboard#Set_Keyboard_Layout_in_initramfs But I dont think lvm offers to use keyboard layout other than US. Its not possible. If you are a developer you might wish to contribute this feature. Follow that link only if you know what you are doing. It may cause software failure or data corruption. – Abhijit Navale Dec 25 '12 at 16:36
-
and also this link http://unix.stackexchange.com/questions/15955/how-to-set-keyboard-layout-used-to-enter-password-on-an-encrypted-filesystem – Abhijit Navale Dec 25 '12 at 16:36
-
Try this: http://askubuntu.com/q/110838/65926 – Eric Carvalho Dec 26 '12 at 12:56
-
As Ubuntu is a different system than Debian, the proposed solution (editing "/etc/initramfs-tools/initramfs.conf" file) did not work with my xubuntu distro. However, I found the solution following this post (https://askubuntu.com/questions/810984/keyboard-layout-ignored-in-initramfs-since-kernel-4-4-0-34-how-to-use-non-us-la) Thanks – Patrice Feb 20 '18 at 10:57
1 Answers
3
For me, simply setting KEYMAP=Y
in /etc/initramfs-tools/initramfs.conf
worked -- I am now able to use my console's keymap for entering the LUKS passphrase.
echo "KEYMAP=Y" | sudo tee -a /etc/initramfs-tools/initramfs.conf
update-initramfs -u
Source: https://wiki.debian.org/Keyboard#Set_Keyboard_Layout_in_initramfs