[Bug 2032586] Re: [3.0][bug] Missing a 'grub-install' settings for classic image

Laider Lai 2032586 at bugs.launchpad.net
Fri Oct 31 09:55:17 UTC 2025


@upils,

Yes, adding `grub-efi-amd64-bin` can fix the problem from the test.yaml.
But I still fail with our project YAML configurations, and I found the key part is the gadget.

If I use the gadget from https://git.launchpad.net/~canonical-foundations/snap-pc/+git/github-mirror-amd64, then the image is built out.
And the build fails with our project gadgets as log below.

The project gadgets didn't have `mbr` and `BIOS boot` partitions.
We only have the EFI System partition.

Does the u-i tool do different things with these 2 partitions?

===log===
Installing for x86_64-efi platform.                                                                                                                      
Installation finished. No error reported.                                                                                                                
Installing for i386-pc platform.                                                                                                                         
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.                                            
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and 
their use is discouraged..                                                                                                                               
grub-install: error: will not proceed with blocklists.                      
No diversion 'local diversion of /etc/grub.d/30_os-prober to /etc/grub.d/30_os-prober.dpkg-divert', none removed.                                        
duration: 1.807554901s                                                      
Error: Error running command "/usr/sbin/chroot work/scratch/loopback grub-install /dev/loop15 --target=i386-pc". Error: exit status 1. Output:           
Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.                                            
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and 
their use is discouraged..                                                  
grub-install: error: will not proceed with blocklists.

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

Title:
  [3.0][bug] Missing a 'grub-install' settings for classic image

Status in Ubuntu Image:
  Fix Committed

Bug description:
  Hi,

  We found if the classic image, which is generated by ubuntu-image 3.0,
  uses grub-efi as its boot assets, the classic environment can't update
  its shim.efi and grub.efi files correctly by "sudo apt upgrade".

  Because its grub Debian package manifest settings are not correct.
  Please reference the description from livecd-rootfs: https://git.launchpad.net/ubuntu/+source/livecd-rootfs/tree/live-build/buildd/hooks/02-disk-image-uefi.binary?h=applied/ubuntu/jammy-devel#n101

  Could ubuntu-image 3.0 support to setup correct grub Debian package
  manifest?

  [Reproduce steps]
  1. Build an amd64 classic image that uses grub-efi boot assets
  2. Bootup image and make sure there is a newer shim-signed and grub-efi-amd64-signed
  3. "sudo apt update" and "sudo apt upgrade" to update newer shim-signed and grub-efi-amd64-signed
  4. Check the checksum result for /boot/efi/EFI/ubuntu/shimx64.efi and grubx64.efi
  5. The checksum result still the old version, not newer version

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-image/+bug/2032586/+subscriptions




More information about the foundations-bugs mailing list