On 22/08/2024 16:44, Felix Miata wrote:
That is written by any process that
reads GRUB_DISTRIBUTOR= to determine where to do its writing on the ESP.

To avoid confusion of those who may notice this thread in search engine results:

In Debian GRUB_DISTRIBUTOR value is *not* passed to "grub-install --bootloader-id" by postinst package scripts:
<https://sources.debian.org/src/grub2/2.12-5/debian/postinst.in/?hl=723#L723>
<https://sources.debian.org/src/shim-signed/1.44/debian/shim-signed.postinst/?hl=64#L64>

Notice
        case $bootloader_id in
            kubuntu) bootloader_id=ubuntu ;;
        esac

that was added to prevent a secure boot issue.

Behavior of SUSE may be different.

I believe, a robust way would be to add grub-install option that reports path withing EFI partition configured at compile time, so heuristics based on GRUB_DISTRIBUTOR from /etc/default/grub would not confuse users.

*Signed* grub*.efi reads its config from EFI/debian/grub.cfg (that loads /boot/grub/grub.cfg) that is fixed when the binary is signed.

Reply via email to