Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


share|improve this answer

Your Answer


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.