mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 15:06:58 +02:00
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:
commit
f04714a4db
@ -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))
|
@ -136,6 +136,8 @@ function _vm_build_impl() {
|
|||||||
COMPRESSION_FORMAT="gz,bz2,none"
|
COMPRESSION_FORMAT="gz,bz2,none"
|
||||||
elif [[ "${format}" =~ ^(qemu|qemu_uefi)$ ]];then
|
elif [[ "${format}" =~ ^(qemu|qemu_uefi)$ ]];then
|
||||||
COMPRESSION_FORMAT="bz2,none"
|
COMPRESSION_FORMAT="bz2,none"
|
||||||
|
elif [[ "${format}" =~ ^(hyperv|hyperv_vhdx)$ ]];then
|
||||||
|
COMPRESSION_FORMAT="zip"
|
||||||
fi
|
fi
|
||||||
./run_sdk_container -n "${vms_container}" -C "${packages_image}" \
|
./run_sdk_container -n "${vms_container}" -C "${packages_image}" \
|
||||||
-v "${vernum}" \
|
-v "${vernum}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user