Debian: Disable LAT BIOS grub updates for UEFI installs

The LAT installer will attempt to write the legacy BIOS grub information
after exiting from the %mkfs hook. Skip it, in case of a UEFI
installation, as we don't have a BIOS boot partition to support legacy
UEFI partition schemes.

This eliminates grub install warnings/error that can be ignored as the
UEFI installation is successful:

  /sbin/grub-install: error: will not proceed with blocklists.

NOTE: The following message will now only be seen on BIOS booted labs as
      this is output from grub-install.

  Installation finished. No error reported.

Test Plan:
PASS - VBox AIO-SX UEFI/NVME clean install

Signed-off-by: Robert Church <robert.church@windriver.com>
Closes-Bug: #1990016
Change-Id: I5472ff13b3df32aab4c57f251ae87144096dc7ab
This commit is contained in:
Robert Church 2022-09-16 13:41:14 -05:00
parent cdeb8c314c
commit b763229079
1 changed files with 5 additions and 0 deletions

View File

@ -1767,6 +1767,11 @@ if [ "${controller}" = true ] ; then
# 1 2048 61442047 29.3 GiB FFFF platform_backup
# 2 61442048 62056447 300.0 MiB EF00 otaefi
p1=2
# LAT installer will attempt to write the legacy BIOS grub information
# after exiting from this hook. Skip it, in this case, as we don't have
# a BIOS boot partition
export BIOSPLUSEFI=0
fi
elif [ "${worker}" = true -o "${storage}" = true ] ; then
# UEFI and BIOS firmware execution