question

LukasMersch-9881 avatar image
0 Votes"
LukasMersch-9881 asked XiaoweiHe-MSFT edited

Hyper-V update grub-efi-amd64 error: /var/lib/grub/esp

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 grub-efi-amd64 (2.04-1ubuntu26.7)
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 /boot/efi?

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.
windows-server-hyper-v
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

I found that you posted this issue on the following forum and seems get a reply there, does the reply in the other forum could be of help to you:

https://askubuntu.com/questions/1325884/hyper-v-update-grub-efi-amd64-error-var-lib-grub-esp

(Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.)

Best Regards,
Anne

0 Votes 0 ·

0 Answers