Permit to define bootloader_id in grub configuration

Bug #1625200 reported by EOLE team
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hello,

For a derivative we want to set GRUB_DISTRIBUTOR, unfortunately, when building -alternate images, shim-signed and grub-efi-amd64-signed are installed by default.

I think a proper fix for #1242417 could be to set bootloader_id from a new variable like GRUB_EFI_DISTRIBUTOR.

This way we could define GRUB_DISTRIBUTOR='FOO' and GRUB_EFI_DISTRIBUTOR='ubuntu'.

Regards.

Tags: xenial
Revision history for this message
EOLE team (eole-team) wrote :

Another way could be to setup a EFI/ubuntu/grub.cfg to set the real prefix to EFI/$(GRUB_DISTRIBUTOR).

Regards.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2 (Ubuntu):
status: New → Confirmed
Revision history for this message
mirak (mirak-mirak) wrote :

The real issue is that no matter what you put in GRUB_DISTRIBUTOR=whatever then grubx64.efi loads EFI/ubuntu/grub.cfg instead of loading EFI/whatever/grub.cfg .
It's like the path is hardcoded in the binary.

Revision history for this message
mirak (mirak-mirak) wrote :

When you run grub-install it creates /boot/grub/x86_64-efi/grubx64.efi that references /boot/grub/grub.cfg

The problem then is that instead of copying this one to /EFI/$GRUB_DISTRIBUTOR/grubx64.efi, it copies /usr/lib/grub/x86_64-efi/monolithic/grubx64.efi or /usr/lib/grub/x86_64-efi-signed/grubx64.efi.signed .

They are prebuilt binaries in the deb packages and reference /EFI/ubuntu/grub.cfg .

I understand that it's necessary if you want to have a signed grubx64.efi, but we should be able to have correct implementation if we don't care about secure boot.

I can find a setting that say which grubx64.efi to take.
Maybe it's handleded by alternatives, I will check that.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.