Public bug reported: I wished to change the label of the EFI entry created by grub-install. I did this by amending the GRUB_DISTRIBUTOR entry in /etc/default/grub.
I then ran "dpkg-reconfigure grub-efi-amd64" expecting this to create a folder in /boot/efi/EFI and create an EFI entry under the new label. However it appeared that grub-install was not run at all. After some investigation it appears that the .postinst script will not run grub-install unless a folder already exists in /boot/efi/EFI/ with the same name as the new GRUB_DISTRIBUTOR value. When I created an empty folder with the new name and reran dpkg-reconfigure everything ran fine. I'm not suggesting a code change but perhaps a comment to this effect in /etc/default/grub. This was running in an up-to-date version of Kubuntu 18.04. ** Affects: grub2 (Ubuntu) Importance: Undecided Status: New ** Description changed: I wished to change the label of the EFI entry created by grub-install. I did this by amending the GRUB_DISTRIBUTOR entry in /etc/default/grub. I then ran "dpkg-reconfigure grub-efi-amd64" expecting this to create a folder in /boot/efi/EFI and create an EFI entry under the new label. However it appeared that grub-install was not run at all. After some investigation it appears that the .postinst script will not - run unless a folder already exists in /boot/efi/EFI/ with the same name - as the new GRUB_DISTRIBUTOR value. When I created an empty folder with - the new name and reran dpkg-reconfigure everything ran fine. + run grub-install unless a folder already exists in /boot/efi/EFI/ with + the same name as the new GRUB_DISTRIBUTOR value. When I created an + empty folder with the new name and reran dpkg-reconfigure everything ran + fine. I'm not suggesting a code change but perhaps a comment to this effect in /etc/default/grub. This was running in an up-to-date version of Kubuntu 18.04. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875166 Title: grub-efi-amd64.postinst not running grub-install when GRUB_DISTRIBUTOR changed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1875166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs