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 c5f6cdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/changes/2024-04-11-hyperv-images-compression.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Hyper-V images, both .vhd and .vhdx files are available as `zip` compressed, switching from `bzip2` to a built-in available Windows compression - `zip` ([scripts#1878](https://github.com/flatcar/scripts/pull/1878))
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 c5f6cdb

Please sign in to comment.