--- a/d-i/source/grub-installer/grub-installer 2023-03-30 01:19:52.000000000 -0400 +++ b/d-i/source/grub-installer/grub-installer 2024-01-31 16:58:52.789037161 -0500 @@ -266,7 +266,7 @@ esac } -# by-id mapping copied from grub-pc.postinst. +# by-id mapping copied from grub-pc-bin.postinst. cached_available_ids= available_ids() @@ -492,12 +492,12 @@ # This point can't be reached (yet). See debian/isinstallable. grub_package="grub-efi" else - grub_package="grub-pc" + grub_package="grub-pc-bin" fi ;; i386/efi|amd64/efi) if [ -f /var/lib/partman/ignore_uefi ]; then - grub_package="grub-pc" + grub_package="grub-pc-bin" else grub_package="grub-efi-amd64-signed" if [ ! -d /target/boot/efi ]; then @@ -505,13 +505,13 @@ # believed this to be unnecessary, perhaps because we're # installing on a pre-existing MBR partition table or # perhaps because there's a BIOS Boot Partition. In either - # case, the right answer is to fall back to grub-pc. - grub_package="grub-pc" + # case, the right answer is to fall back to grub-pc-bin. + grub_package="grub-pc-bin" fi fi ;; i386/*|amd64/*) - grub_package="grub-pc" + grub_package="grub-pc-bin" ;; powerpc/*) grub_package="grub-ieee1275" @@ -524,7 +524,7 @@ grub_package="grub-yeeloong" ;; *) - grub_package="grub-pc" + grub_package="grub-pc-bin" esac case $ARCH:$grub_package in @@ -622,12 +622,12 @@ (! db_get debian-installer/splash || [ "$RET" = true ]); then defopt_params=${defopt_params:+$defopt_params }splash fi -if [ "$grub_package" = grub-pc ]; then +if [ "$grub_package" = grub-pc-bin ]; then # Empty this for now to stop it being asked. We'll fix this up later. # (quoting to deconfuse vim) $chroot $ROOT 'debconf-set-selections' <$ROOT/boot/grub/$menu_file.new mv $ROOT/boot/grub/$menu_file.new $ROOT/boot/grub/$menu_file ;; - grub-pc|grub-efi*) + grub-pc-bin|grub-efi*) if grep -q "^GRUB_TERMINAL=" $ROOT/etc/default/grub; then sed -i $ROOT/etc/default/grub -e "s/^\(GRUB_TERMINAL\)=.*/\1=serial/g" else