uefi-x86: customizable UEFI_GRUB_TERMINAL per board

This commit is contained in:
David Andreoletti 2024-02-28 22:39:13 +08:00 committed by Igor
parent 33906869c0
commit a218d13345
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
#
# Important: LINUXFAMILY and ARCH are defined _before_ including the common family include
[[ "$BUILD_DESKTOP" == yes && "$RELEASE" == jammy ]] && enable_extension "nvidia"
declare -g UEFI_GRUB_TERMINAL="gfxterm"
declare -g UEFI_GRUB_TERMINAL="${UEFI_GRUB_TERMINAL:-gfxterm}"
declare -g LINUXFAMILY="x86"
declare -g ARCH="amd64"
source "${BASH_SOURCE%/*}/include/uefi_common.inc"

View File

@ -218,7 +218,7 @@ pre_umount_final_image__install_grub() {
fi
# Check and warn if the wallpaper was not picked up by grub-mkconfig, if UEFI_GRUB_TERMINAL==gfxterm
if [[ "${UEFI_GRUB_TERMINAL}" == "gfxterm" ]]; then
if [[ "${UEFI_GRUB_TERMINAL}" =~ "gfxterm" ]]; then
if ! grep -q "background_image" "${chroot_target}/boot/grub/grub.cfg"; then
display_alert "GRUB mkconfig problem" "no wallpaper detected in generated grub.cfg" "warn"
else