My work recently installed Ubuntu 22.04.3 LTS on a laptop of mine with full disk encryption using cryptsetup (I would have preferred to install it myself, but I wasn't given the choice...). The problem is that my laptop has a QWERTY keyboard, but they installed it with a French AZERTY keyboard for the disk encryption passphrase entry step. I have tried several things to change the keyboard to QWERTY, but I cannot get it to work. Initially, I changed the GRUB configuration to use en_US following the instructions here:
How to change grub command-line (grub shell) keyboard layout?
This seems to have worked, but if I understand correctly, encryption passphrase entry comes after GRUB, so this didn't fix my problem.
Next, I tried the instructions here:
Wrong keyboard layout during disk encryption passphrase entry
This changed the keyboard that was displayed on the encryption passphrase entry screen to us (i.e., it shows a little keyboard icon with the letters us right next to it instead of fr as it was previously), but when I go to actually enter the passphrase the keyboard is still French/AZERTY. I suspect this is because the instructions are for an older version of Ubuntu and they only apply to the initramfs launch, but not whatever is used at the moment of encryption passphrase entry.
What is the appropriate way to change the keyboard layout for encryption passphrase entry? More generally, is there a way to assure that GRUB/cryptsetup/... all use the same QWERTY keyboard layout?