Skip to content

Commit ab2cb0f

Browse files
committed
ci-automation/vms: provide Hyper-V images with .zip compression
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]>
1 parent 144a0c4 commit ab2cb0f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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))

ci-automation/vms.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ function _vm_build_impl() {
136136
COMPRESSION_FORMAT="gz,bz2,none"
137137
elif [[ "${format}" =~ ^(qemu|qemu_uefi)$ ]];then
138138
COMPRESSION_FORMAT="bz2,none"
139+
elif [[ "${format}" =~ ^(hyperv|hyperv_vhdx)$ ]];then
140+
COMPRESSION_FORMAT="zip"
139141
fi
140142
./run_sdk_container -n "${vms_container}" -C "${packages_image}" \
141143
-v "${vernum}" \

0 commit comments

Comments
 (0)