Skip to content

Commit

Permalink
Merge pull request #1132 from krishjainx/qcow2-inline-compression
Browse files Browse the repository at this point in the history
Allow use qcow2 inline compression
  • Loading branch information
pothos committed Sep 25, 2023
2 parents c593d76 + 2124f63 commit 9ffceaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build_library/vm_image_util.sh
Expand Up @@ -625,7 +625,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
}

Expand Down
2 changes: 2 additions & 0 deletions ci-automation/vms.sh
Expand Up @@ -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}" \
Expand Down

0 comments on commit 9ffceaf

Please sign in to comment.