Public bug reported: After upgrading a system from bionic to focal, grub-install began to fail:
$ sudo /usr/sbin/grub-install Installing for x86_64-efi platform. /usr/sbin/grub-install: warning: Internal error. /usr/sbin/grub-install: error: failed to register the EFI boot entry: Operation not permitted. The issue seems to stem from libefiboot1. With upstream release 35: # LD_PRELOAD=/home/ubuntu/efivar/src/libefiboot.so /bin/efibootmgr -q -c -d /dev/nvme0n1 -p 1 -w -L grub -l \\EFI\\grub\\grubx64.efi -v # But with 36: # LD_PRELOAD=/home/ubuntu/efivar/src/libefiboot.so /bin/efibootmgr -q -c -d /dev/nvme0n1 -p 1 -w -L grub -l \\EFI\\grub\\grubx64.efi -vCould not prepare Boot variable: No such file or directory git bisect of upstream efivars hit the following commit: # first bad commit: [ff696a432bf92af1206e235a60ad28b58ff0ab92] Move nvme parsing to linux-nvme.c ** Affects: efivar (Ubuntu) Importance: Undecided Status: New ** Affects: efivar (Ubuntu Focal) Importance: Undecided Status: New ** Affects: efivar (Ubuntu Groovy) Importance: Undecided Status: New ** Also affects: efivar (Ubuntu Groovy) Importance: Undecided Status: New ** Also affects: efivar (Ubuntu Focal) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1891718 Title: [Regression] breaks GRUB install on an nvme device To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/efivar/+bug/1891718/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs