Merge "Support multiple outputs disk formats"
This commit is contained in:
commit
619153bdf4
@ -166,7 +166,8 @@ function finalise_base () {
|
|||||||
|
|
||||||
function compress_image () {
|
function compress_image () {
|
||||||
# Recreate our image to throw away unnecessary data
|
# Recreate our image to throw away unnecessary data
|
||||||
qemu-img convert ${COMPRESS_IMAGE:+-c} $TMP_IMAGE_PATH -O qcow2 $TMP_IMAGE_PATH-new
|
test $IMAGE_TYPE != qcow2 && COMPRESS_IMAGE=""
|
||||||
|
qemu-img convert ${COMPRESS_IMAGE:+-c} $TMP_IMAGE_PATH -O $IMAGE_TYPE $TMP_IMAGE_PATH-new
|
||||||
rm $TMP_IMAGE_PATH
|
rm $TMP_IMAGE_PATH
|
||||||
mv $TMP_IMAGE_PATH-new $TMP_IMAGE_PATH
|
mv $TMP_IMAGE_PATH-new $TMP_IMAGE_PATH
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user