grub_install.sh: Ensure shim packages are installed

Without these, build_image will fail in a fresh SDK instance.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
James Le Cuirot 2025-05-28 17:46:06 +01:00
parent 617decbbc3
commit d78421a362
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137

View File

@ -75,7 +75,9 @@ esac
info "Updating GRUB in ${BOARD_ROOT}" info "Updating GRUB in ${BOARD_ROOT}"
emerge-${BOARD} \ emerge-${BOARD} \
--nodeps --select --verbose --update --getbinpkg --usepkgonly --newuse \ --nodeps --select --verbose --update --getbinpkg --usepkgonly --newuse \
sys-boot/grub sys-boot/grub \
sys-boot/shim \
sys-boot/shim-signed
GRUB_SRC="${BOARD_ROOT}/usr/lib/grub/${FLAGS_target}" GRUB_SRC="${BOARD_ROOT}/usr/lib/grub/${FLAGS_target}"
[[ -d "${GRUB_SRC}" ]] || die "GRUB not installed at ${GRUB_SRC}" [[ -d "${GRUB_SRC}" ]] || die "GRUB not installed at ${GRUB_SRC}"