From e159691349b442a0272a14d86f190d1dc32d4450 Mon Sep 17 00:00:00 2001 From: Jianfeng Liu Date: Thu, 22 Jan 2026 15:42:15 +0800 Subject: [PATCH] extension: grub: deploy qemu binary when doing cross build --- extensions/grub.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/grub.sh b/extensions/grub.sh index 63699c80be..8e835f0e5a 100644 --- a/extensions/grub.sh +++ b/extensions/grub.sh @@ -153,6 +153,8 @@ pre_umount_final_image__install_grub() { The chroot ($MOUNT) is mounted. GRUB_PRE_INSTALL + deploy_qemu_binary_to_chroot "$chroot_target" "grub" # undeployed near the end of this function + if [[ "${UEFI_GRUB_TARGET_BIOS}" != "" ]]; then display_alert "Extension: ${EXTENSION}: Installing GRUB BIOS..." "${UEFI_GRUB_TARGET_BIOS} device ${LOOP}" "" chroot_custom "$chroot_target" grub-install --target=${UEFI_GRUB_TARGET_BIOS} "${LOOP}" || { @@ -236,6 +238,7 @@ pre_umount_final_image__install_grub() { # Remove host-side config. rm -f "${MOUNT}"/etc/default/grub.d/99-armbian-host-side.cfg + undeploy_qemu_binary_from_chroot "$chroot_target" "grub" umount_chroot "$chroot_target/" }