I’m currently testing Leap 15.6. I have encrypted the whole disk of my VM during the installation thanks to the graphical installer. The problem is that I have set the passphrase thanks to an AZERTY keyboard layout but grub2 is stuck on the QWERTY layout when I unlock the partition. Is it possible to change that? I’m not expert so I don’t know if the keyboard layout problem is caused by grub2 or initramfs. I’ve already read this doc and this one. Is there nothing I can do?
Is this problem caused by the fact that I am testing on a VM and not from a computer with an AZERTY keyboard? The bios used in this VM is SeaBIOS (version 1.16.2-debian-1.16.2-1).
No. On PC GRUB is using firmware (BIOS or UEDFI) services to get input. It is the firmware that translates key presses into ASCII characters. GRUB has some support for remapping keyboard layout when running on bare metal for AT and USB keyboards. But that will unlikely work on top of normal BIOS/UEFI firmware.
No, on kernel installation only grub.cfg is regenerated, as long as your custom grub binary is using the default location of grub.cfg it should still be used. On grub (and shim depending on your platform) update new bootloader is installed and it will override your changes.
OK, so in what circumcircumstances is a new bootloader going to be installed and as a consequence override my custom grub?
At this point I’m assessing whether it’s worth the trouble to repeat that process. If I can’t encrypt the whole disk, including /boot, because of the keyboard layout issue, I can’t perform btrfs rollbacks safely either.
When grub or shim package is updated. When you manually force re-installation e.g. using YaST (which is rather popular advice on this forum). Maybe something else can trigger it.