From d1ba9b19fba58172e293459e69453bcaa39a90a7 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Wed, 2 Oct 2024 11:15:57 +0100 Subject: [PATCH] Switch from raw (.fd) EDK2 firmware images to QCOW2, plus 4MB on amd64 The new arm64 firmware supporting Secure Boot (see next commit) is in QCOW2 format only, avoiding the extra space taken up by the 64MB padding. Supporting both raw and QCOW2 images would be messy, so switch entirely to QCOW2. Only the 4MB images are in QCOW2 format on amd64, so also switch away from the 2MB images. 4MB images are now the default for most distributions as they are needed to apply certain Windows updates. Signed-off-by: James Le Cuirot --- .github/workflows/ci.yaml | 4 ++-- .github/workflows/run-kola-tests.yaml | 6 +++--- build_library/qemu_template.sh | 4 ++-- build_library/vm_image_util.sh | 20 +++++++++---------- changelog/changes/2024-11-08-uefi-firmware.md | 1 + ci-automation/ci-config.env | 8 ++++---- jenkins/kola/qemu_common.sh | 2 +- run_local_tests.sh | 4 ++-- 8 files changed, 24 insertions(+), 25 deletions(-) create mode 100644 changelog/changes/2024-11-08-uefi-firmware.md diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0e506f97a9..1997901f6b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -278,7 +278,7 @@ jobs: scripts/artifacts/images/flatcar_production_image*.txt scripts/artifacts/images/flatcar_production_image*.json scripts/artifacts/images/flatcar_production_image_pcr_policy.zip - scripts/artifacts/images/flatcar_production_*_efi_*.fd + scripts/artifacts/images/flatcar_production_*_efi_*.qcow2 scripts/artifacts/images/flatcar_production_qemu.sh - name: Upload developer container @@ -317,7 +317,7 @@ jobs: path: | scripts/artifacts/images/*.img scripts/artifacts/images/*.bin - scripts/artifacts/images/flatcar_production_*_efi_*.fd + scripts/artifacts/images/flatcar_production_*_efi_*.qcow2 scripts/artifacts/images/*.txt scripts/artifacts/images/flatcar-*.raw scripts/artifacts/images/flatcar_production_*.sh diff --git a/.github/workflows/run-kola-tests.yaml b/.github/workflows/run-kola-tests.yaml index 7e3ea8b039..a5e7ebf548 100644 --- a/.github/workflows/run-kola-tests.yaml +++ b/.github/workflows/run-kola-tests.yaml @@ -162,7 +162,7 @@ jobs: # Extract the generic image we'll use for qemu tests. # Note that the qemu[_uefi] tests use the generic image instead of the # qemu vendor VM image ("Astronaut: [...] Always have been."). - mv flatcar_production_image.bin flatcar_production_qemu_uefi_efi_code.fd flatcar_production_qemu_uefi_efi_vars.fd scripts/ + mv flatcar_production_image.bin flatcar_production_qemu_uefi_efi_code.qcow2 flatcar_production_qemu_uefi_efi_vars.qcow2 scripts/ mv flatcar_test_update.gz scripts/ @@ -197,8 +197,8 @@ jobs: cat > sdk_container/.env < sdk_container/.env <