grub-install with --removable flag broken in ubuntu 24.04

Bug #2066142 reported by Magesh GV
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu Version: 24.04
Grub2-common: 2.12-1ubuntu7

Use Case/Scenario:

Create a bootable disk image.

Commands:
sudo qemu-nbd --connect=/dev/nbd0 <disk image file that was created>
sudo mount /dev/nbd0p3 /tmp/boot/
sudo mount /dev/nbd0p2 /tmp/efi/
sudo grub-install --target=x86_64-efi --efi-directory=/tmp/efi/ --boot-directory=/tmp/boot/ --modules="ext2 fat part_gpt xzio squash4" --removable --compress=xz

Write menuentries to /tmp/boot/grub/grub.cfg

What Happens:
System boots into grub prompt. Grub does not load /EFI/BOOT/grub.cfg automatically.

Manual Recovery on every boot:
Run this command when boot drops to grub shell: source $fw_path/grub.cfg

grub-install without --removable option works fine, but in my understanding --removable option is required for some older EFI systems at least.

This works fine when the same grub-install with --removable flag is run on ubuntu 22.04 system.

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.