Debian – How to set keyboard layout used to enter password on an encrypted filesystem

bootdebiankeyboard-layoutlvm

After my upgrade to Debian 6 (Squeeze), the keyboard layout used to enter the password of encrypted filesystem has been changed. How can I revert it back to previous one?

My understanding is that, before the encrypted filesystem gets unlocked, the only active partition is /boot, therefore such a setting should be there somewhere. However, after extensive Internet searching and grepping /boot, I've not been able to find it.

I've also tried to reconfigure the keyboard layout used by the console, running:

dpkg-reconfigure keyboard-configuration

…and:

dpkg-reconfigure console-data

…with no effect.

Best Answer

You need to customize your initramfs. Take a look at the update-initramfs manpage as one possible starting point.

Related Question