On 22/08/2024 05:21, Felix Miata wrote:
My BBS menu contains 4 entries corresponding to output from efibootmgr,
with the highlight on the one beginning "opensusetw", as configured via
GRUB_DISTRIBUTOR=.

Or it just coincides with the configured value. My expectation is that EFI/opensusetw/grub.cfg is still hardcoded in your grubx64.efi. I tried earlier "install-grub --bootloader-id", but there was a pitfall in the case of enabled SecureBoot: grubx64.efi and grub.cfg were taken from different ESP directories that is not apparent in some cases.

My custom.cfg is 100% managed by me.
[...]
This is KISS applied to multibooting with UEFI.

Sorry, but this time I would prefer to leave aside grub configuration unrelated to UEFI. I have never had intention to dispute that it is possible to configure multiboot using grub. Multiboot using UEFI facilities directly is a bit different beast.

printf "GRUB_DISTRIBUTOR=%s\n" mydeb \
     >/etc/default/grub.d/distributor.cfg
update-grub
grep --count mydeb /boot/grub/grub.cfg
8

Do we know that the update-grub command normally writes to /boot/efi/EFI/,
and NVRAM (optional?)?

Actually I tried dpkg-reconfigure for grub and shim packages and your message made me thinking that you may correct me and may provide proper commands to configure *UEFI* boot menu.

From my old notes:
<https://bugs.launchpad.net/bugs/1450783>

Reply via email to