[Bug 2066142] [NEW] grub-install with --removable flag broken in ubuntu 24.04
Magesh GV
2066142 at bugs.launchpad.net
Mon May 20 06:06:23 UTC 2024
Public bug reported:
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.
** 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/2066142
Title:
grub-install with --removable flag broken in ubuntu 24.04
Status in grub2 package in Ubuntu:
New
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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2066142/+subscriptions
More information about the foundations-bugs
mailing list