I may have posted before. In several threads.
I long ago filed a bug report so a second install could have its own UEFI entry. Every install of any flavor except kubuntu overwrites /EFI/ubuntu. About the same time they updated grub to allow kubuntu as an entry.
I have created unique entries, just be changing the default in /etc/default/grub. But it still is hard coded to find grub.cfg from /EFI/ubuntu so does not really work.
#GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_DISTRIBUTOR='Ubuntu16.04_Xenial'
It looks like many distributions use this, as the efi_distributor is the variable that is the name in the UEFI entry and bootloader_id
efi_distributor = bootloader_id;
But Ubuntu does this for every reference of efi_distributor.
efi_distributor = "ubuntu"
But then did the change, with just an if type statement, that if Kubuntu use kubuntu, not ubuntu.
Distributions that will boot with UEFI Secure Boot use shimx64.efi which is the shim between secure boot and grub. I believe shimx64.efi works with secure boot off, so have not understood why grubx64.efi still is added to efi menu.
Fedora also has this and they use the full grub.cfg in the ESP, not the configfile that Ubuntu uses for the full grub.cfg in /boot in the install:
Fedora
grub2-install shouldn't be used on EFI systems. The grub2-efi package installs a prebaked grubx64.efi on the EFI System partition, which looks for grub.cfg on the ESP in /EFI/fedora/ whereas the grub2-install command creates a custom grubx64.efi, deletes the original installed one, and looks for grub.cfg in /boot/grub2/.
efi_distributor = bootloader_id;
alias update-grub='sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg'
Bookmarks