Allow use qcow2 compressed format in place of additional compressed layer

This commit is contained in:
krishjainx 2023-09-12 11:21:08 -04:00
parent c10e4ca3ac
commit 2124f63dcb
2 changed files with 3 additions and 1 deletions

View File

@ -619,7 +619,7 @@ _write_raw_disk() {
}
_write_qcow2_disk() {
qemu-img convert -f raw "$1" -O qcow2 -o compat=0.10 "$2"
qemu-img convert -f raw "$1" -O qcow2 -c -o compat=0.10 "$2"
assert_image_size "$2" qcow2
}

View File

@ -129,6 +129,8 @@ function _vm_build_impl() {
COMPRESSION_FORMAT="bz2"
if [[ "${format}" =~ ^(openstack|openstack_mini|digitalocean)$ ]];then
COMPRESSION_FORMAT="gz,bz2"
elif [[ "${format}" =~ ^(qemu|qemu_uefi)$ ]];then
COMPRESSION_FORMAT="bz2,none"
fi
./run_sdk_container -n "${vms_container}" -C "${packages_image}" \
-v "${vernum}" \