On Mon, Mar 30, 2026 at 11:22:57AM -0400, Noah Meyerhans wrote:
> The problem can be worked around by passing the `--force-extra-removable` to
> grub-install.  This can be done after the upgrade (but before rebooting), or
> it'll happen automatically if the grub2/force_efi_extra_removable variable
> to true before the upgrade, e.g.
> 
> echo "grub-efi-arm64  grub2/force_efi_extra_removable boolean true" | \
>   sudo debconf-set-selections
> 
> With this option, grub-install updates the content of /boot/efi/EFI/BOOT,
> which otherwise does not get updated.

The cloud image build passes `--force-extra-removable` to grub-install
to place grub in the fallback UEFI path.[1]  This is necessary because
we can't provide EFI boot order settings as part of the image.  Thus, I
think we also need to take care to ensure that these grub components are
kept up-to-date through dist-upgrades.  We can do that by setting
grub2/force_efi_extra_removable=true in debconf in the images (i.e. in
the same script in which we're calling grub-install)

noah

1. 
https://salsa.debian.org/cloud-team/debian-cloud-images/-/blob/master/config_space/14/scripts/SYSTEM_BOOT/20-grub?ref_type=heads#L17

Reply via email to