I have an Ubuntu 20.04.2 running as a Generation 2 (UEFI) VM on a Hyper-V.
Today I wanted to do an
apt upgrade with
grub-efi-amd64 (2.04-1ubuntu26.9) previously
The update process stops at
Installing grub to /var/lib/grub/esp. Installing for x86_64-efi platform. grub-install: error: /var/lib/grub/esp doesn't look like an EFI partition.
This error only occurs if the VM has more than one virtual hard disk.
What can I do so that
/var/lib/grub/esp is not used but only
I have only one boot partition!
The problem can be reproduced with
sudo apt --reinstall install grub-efi-amd64
With one virtual hard disk it is all ok:
Installing grub to /boot/efi. Installing for x86_64-efi platform.