Comment 9 for bug 1872212

Revision history for this message
Dariusz Kolasinski (offcer) wrote :

Same result here, hypervisor: Hyper-V.
Partition table: GPT

Here is command dpkg uses to upgrade grub:
root@host ~ # grub-install --efi-directory=/boot/efi --target=x86_64-efi /dev/sda
Installing for x86_64-efi platform.
grub-install: warning: Internal error.
grub-install: error: failed to register the EFI boot entry: Operation not permitted.

Here is the same command with: --no-nvram

root@host ~ # grub-install --efi-directory=/boot/efi --target=x86_64-efi --no-nvram /dev/sda
Installing for x86_64-efi platform.
Installation finished. No error reported.

It looks like it is related to Hyper-V.

I`ve tried to use dpkg-reconfigure grub-efi-amd64 to set update_nvram false, but dpkg is still not using the --no-nvram flag:

root@host /var/lib/dpkg # debconf-show grub-efi-amd64 | fgrep nvram
* grub2/update_nvram: false