Ubuntu – Wrong keyboard layout during disk encryption passphrase entry

input-languagekeyboardkeyboard-layoutluks

Ubuntu 18.04.1 LTS
In GNOME I have two keyboard layouts english and russian while system wide language is set to english.
During OS installation I've set LUKS encription with a passphrase in english.
Did not have any issues until recently, my passphrase for disk encryption would not work anymore. Because you can't see what you type, it took me some time to realize that something is wrong with a layout. I have entered my passphrase using Alt codes and it worked(eg. Alt-110 Alt-117 refering to http://charmap.ru/alt_table.htm).
Somehow my input language has changed to russian by default for passphrase.
In addition, shortcuts for switching input language do not work as well (have tried all possible shortcuts)
How do I change it back to english?

Contents of /etc/default/keyboard:

XKBLAYOUT=us,ru

XKBVARIANT=,

BACKSPACE=guess

Best Answer

echo "KEYMAP=Y" | sudo tee -a /etc/initramfs-tools/initramfs.conf update-initramfs -u

Solved my problem! Thanks!