grub: set debconf value to indicate --removable install

Else we risk that the fallback boot manager and the rest of the Grub
components in /boot run out of sync, which can break booting on
systems that use that fallback entry instead of the regular one..

This debconf variable is read by grub-efi-amd64 and shim(-signed)
postinst script, if set, `--force-extra-removable` gets passed to
their grub-install invocations.

Reported on the forum: https://forum.proxmox.com/threads/162989

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2025-03-04 10:45:22 +01:00 committed by Thomas Lamprecht
parent a1575df428
commit 95f2bc3ee2

View File

@ -1206,6 +1206,7 @@ postfix postfix/main_mailer_type select No configuration
keyboard-configuration keyboard-configuration/xkb-keymap select $xkmap
d-i debian-installer/locale select en_US.UTF-8
grub-pc grub-pc/install_devices select $grub_install_devices_txt
grub-efi-amd64 grub2/force_efi_extra_removable boolean true
_EOD
my $pkg_count = 0;