From 2d5d42e13517b770218ee7ab87fa2daa71de9be0 Mon Sep 17 00:00:00 2001 From: Kai Lueke Date: Thu, 18 Apr 2024 20:18:28 +0900 Subject: [PATCH] ci-automation/vms: Download vmlinuz file before building VM images After making flatcar_production_pxe.vmlinuz a symlink to flatcar_production_image.vmlinuz the signature creation didn't work because the target could not be found. As we do with the generic image, download the kernel from bincache, too, before starting the VM image build. --- ci-automation/vms.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci-automation/vms.sh b/ci-automation/vms.sh index 2594ebe83b..0f2fa2432b 100644 --- a/ci-automation/vms.sh +++ b/ci-automation/vms.sh @@ -106,6 +106,7 @@ function _vm_build_impl() { rm -rf "${images_in}" copy_from_buildcache "images/${arch}/${vernum}/flatcar_production_image.bin.bz2" "${images_in}" copy_from_buildcache "images/${arch}/${vernum}/version.txt" "${images_in}" + copy_from_buildcache "images/${arch}/${vernum}/flatcar_production_image.vmlinuz" "${images_in}" lbunzip2 "${images_in}/flatcar_production_image.bin.bz2" ./run_sdk_container -x ./ci-cleanup.sh -n "${vms_container}" -C "${packages_image}" \ -v "${vernum}" \ @@ -144,8 +145,12 @@ function _vm_build_impl() { mv "${CONTAINER_IMAGE_ROOT}/${arch}-usr/" "./${images_out}/" ( cd images/latest ; ln -s flatcar_production_openstack_image.img.bz2 flatcar_production_brightbox_image.img.bz2 ) + # For the digest creation we need the vmlinuz at the same folder + # because the PXE vmlinuz is a symlink to it + mv images/latest-input/flatcar_production_image.vmlinuz images/latest/ create_digests "${SIGNER}" "images/latest/"* sign_artifacts "${SIGNER}" "images/latest/"* + mv images/latest/flatcar_production_image.vmlinuz* images/latest-input/ copy_to_buildcache "images/${arch}/${vernum}/" "images/latest/"* } # --