I am trying to convert my legacy bios LVM-based Ubuntu 16 installation so that I can run it on a NUC that only supports UEFI. I have been round the houses on this:
Boot-Repair - doesn't work chroot with grub-install - doesn't work
with many variations in between. Here are the details:
three partitions: /dev/sda1 - current /boot partition containing linux images, ext2 /dev/sda2 - current /root partition using LVM /dev/sda3 - new EPS partition formatted using FAT32, boot flag set
I have tried chroot-ing into the root partition, mounting sda1 as /boot and sda3 as /boot/efi and then using grub-install - succeeds but not boot (e.g. exactly this https://www.shellhacks.com/reinstall-grub-from-live-usb-uefi-lvm/)
- my target system is i386 but you can only get UEFI enabled live images for x64 - does this matter?
- does my target system version need to match my live version?
- does it matter that I have both a /boot partition and a /boot/efi partition?
- does it matter that my efi partition is not first?
- how do I tell what a properly configured system looks like?
any clues as to how to get this working? I have spent hours on this
UPDATE: this is almost certainly because my UEFI firmware only supports 64-bit and the system I am trying to boot is 32-bit. Given that I plan to try and upgrade everything anyway I am first going to try a chroot multiarch upgrade and see if that gets me into a position where I can boot with 64-bit grub EFI