[Bug 2119552] [NEW] grub-install should warn on incompatible bootloader-id

Ryan Govostes 2119552 at bugs.launchpad.net
Tue Aug 5 16:39:24 UTC 2025


Public bug reported:

The `grub-install --bootloader-id` option determines the path where the
EFI binary (grubx64.efi) and config "trampoline" (grub.cfg) are
installed, typically /boot/efi/EFI/<ID>/.

GRUB's EFI binary also embeds a search prefix (via `grub-mkimage -p
/EFI/<ID>`) that it uses at runtime to locate grub.cfg. On Ubuntu, this
is `-p /EFI/ubuntu`.

If --bootloader-id does not match the -p prefix embedded in the EFI
binary, then GRUB will fail to find grub.cfg at boot and will drop to
the GRUB shell.

Users cannot reasonably be expected to intuit that --bootloader-
id=ubuntu must be passed on Ubuntu systems. As this causes a boot
failure, grub-install should emit a warning at minimum.

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/2119552

Title:
  grub-install should warn on incompatible bootloader-id

Status in grub2 package in Ubuntu:
  New

Bug description:
  The `grub-install --bootloader-id` option determines the path where
  the EFI binary (grubx64.efi) and config "trampoline" (grub.cfg) are
  installed, typically /boot/efi/EFI/<ID>/.

  GRUB's EFI binary also embeds a search prefix (via `grub-mkimage -p
  /EFI/<ID>`) that it uses at runtime to locate grub.cfg. On Ubuntu,
  this is `-p /EFI/ubuntu`.

  If --bootloader-id does not match the -p prefix embedded in the EFI
  binary, then GRUB will fail to find grub.cfg at boot and will drop to
  the GRUB shell.

  Users cannot reasonably be expected to intuit that --bootloader-
  id=ubuntu must be passed on Ubuntu systems. As this causes a boot
  failure, grub-install should emit a warning at minimum.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2119552/+subscriptions




More information about the foundations-bugs mailing list