Merge pull request #1878 from flatcar/ader1990/hyperv-zip-compression

ci-automation/vms: provide Hyper-V images with .zip compression
This commit is contained in:
Adrian Vladu 2024-04-11 15:45:08 +03:00 committed by GitHub
commit f04714a4db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -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))

View File

@ -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}" \