Skip to content

Commit

Permalink
Merge pull request #1132 from flatcar/scripts
Browse files Browse the repository at this point in the history
Allow use qcow2 inline compression
  • Loading branch information
pothos committed Sep 26, 2023
2 parents c88425f + 18b1e54 commit 513e35e
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
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,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
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,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 513e35e

Please sign in to comment.