Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci-automation/vms: Download vmlinuz file before building VM images #1936

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ci-automation/vms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function _vm_build_impl() {
local images_in="images-in/"
local file
rm -rf "${images_in}"
for file in flatcar_production_image.bin.bz2 flatcar_production_image_sysext.squashfs version.txt; do
for file in flatcar_production_image.bin.bz2 flatcar_production_image_sysext.squashfs flatcar_production_image.vmlinuz version.txt; do
copy_from_buildcache "images/${arch}/${vernum}/${file}" "${images_in}"
done
lbunzip2 "${images_in}/flatcar_production_image.bin.bz2"
Expand Down Expand Up @@ -156,8 +156,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/"*
}
# --
Loading