I spent now quite some time, searching many places on the internet, but still fail to move an installation from BIOS/MBR to UEFI/GPT.
I would appreciate any help what is missing.
Original install:
/dev/sda1 is LUKS, LVM on top, and one LV is / (with /boot/grub)
so its an easy install from a chroot in the root LV:
grub-install --boot-directory=/boot /dev/sda
Grub loads from MBR+sda, asks for password of LUKS /dev/sda1, finds correct LV of / and there finds all the rest in /boot/grub
How to replicate this with GPT and UEFI? I failed so far :-/
GPT part1 is EF00 EFI system partition
GPT part2 is 8300 Linux, LUKS encrypted, with multiple LVs, one of them is / (with /boot/...), just like in the original setup.
So setting up from a chroot in the root LV (GPT1 mounted at /boot/efi)
grub-install --target=x86_64-efi --efi-directory=/boot/efi /dev/GPT1
this creates
/EFI/gentoo/grubx86.efi in GPT1 with a proper boot entry (checked with efibootmgr -v)
and installs all Grub modules in /boot/grub/...
Upon reboot this does not work, it stops stuck with just cursor in left upper corner
What is missing that in the UEFI install Grub also asks for the password of the LUKS encrypted GPT2 partition (containing the root LVM) to continue?
Maybe in the UEFI case something extra needs to be linked into Grub?
