diff --git a/ci-automation/ci-config.env b/ci-automation/ci-config.env index 6c177bb4c5..9188dc454a 100644 --- a/ci-automation/ci-config.env +++ b/ci-automation/ci-config.env @@ -66,6 +66,7 @@ QEMU_BIOS="/usr/share/qemu/bios-256k.bin" # UEFI bios filename on build cache. # Published by vms.sh as part of the qemu vendor build. QEMU_UEFI_BIOS="${QEMU_UEFI_BIOS:-flatcar_production_qemu_uefi_efi_code.fd}" +QEMU_UEFI_SECURE_BIOS="${QEMU_UEFI_SECURE_BIOS:-flatcar_production_qemu_uefi_secure_efi_code.fd}" # Update payload for the qemu_update.sh test. # The default path set below is relative to TEST_WORK_DIR diff --git a/ci-automation/vendor-testing/qemu.sh b/ci-automation/vendor-testing/qemu.sh index 7b426889e4..75c97fb855 100755 --- a/ci-automation/vendor-testing/qemu.sh +++ b/ci-automation/vendor-testing/qemu.sh @@ -34,6 +34,13 @@ fi bios="${QEMU_BIOS}" if [ "${CIA_TESTSCRIPT}" = "qemu_uefi.sh" ] ; then bios="${QEMU_UEFI_BIOS}" +fi + +if [ "${CIA_TESTSCRIPT}" = "qemu_uefi_secure.sh" ] ; then + bios="${QEMU_UEFI_SECURE_BIOS}" +fi + +if [ "${CIA_TESTSCRIPT}" = "qemu_uefi.sh" ] || [ "${CIA_TESTSCRIPT}" = "qemu_uefi_secure.sh" ] ; then if [ -f "${bios}" ] ; then echo "++++ ${CIA_TESTSCRIPT}: Using existing ${bios} ++++" else