Skip to content

Commit

Permalink
ci-automation/vms: provide Hyper-V images with .zip compression
Browse files Browse the repository at this point in the history
On Windows, the .bz2 compression format is not supported by native
tooling and external tools like 7zip need to be installed.

Switching to .zip compression, there will be no need for the extra step
of having external tools.

See: flatcar/Flatcar#1009

Signed-off-by: Adrian Vladu <[email protected]>
  • Loading branch information
ader1990 committed Apr 11, 2024
1 parent 6231d0c commit 27b837a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci-automation/vms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ function _vm_build_impl() {
COMPRESSION_FORMAT="gz,bz2,none"
elif [[ "${format}" =~ ^(qemu|qemu_uefi)$ ]];then
COMPRESSION_FORMAT="bz2,none"
elif [[ "${format}" =~ ^(hyperv|hyperv_vhdx)$ ]];then
COMPRESSION_FORMAT="zip"
fi
./run_sdk_container -n "${vms_container}" -C "${packages_image}" \
-v "${vernum}" \
Expand Down

0 comments on commit 27b837a

Please sign in to comment.