Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I permanently change the keyboard layout for the passphrase prompt at startup?

share|improve this question
    
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. 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

1 Answer 1

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. As root:

echo "KEYMAP=Y" >> /etc/initramfs-tools/initramfs.conf
update-initramfs -u

Source: https://wiki.debian.org/Keyboard#Set_Keyboard_Layout_in_initramfs

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.