From 224acc6456e986650be501dc52f8d4acca5ec088 Mon Sep 17 00:00:00 2001 From: Jonas Sticha Date: Thu, 12 May 2016 17:44:04 +0200 Subject: [PATCH] Correct order of parameters in call to qemu-img convert Under some systems this leads to an error if the oder of parameters does not comply exactly with the way it is specified. Change-Id: I9561b85985e3f0917f1b4c7801c9048b4e73ae3b --- lib/img-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/img-functions b/lib/img-functions index adfbb3ef..f64a95a5 100644 --- a/lib/img-functions +++ b/lib/img-functions @@ -131,7 +131,7 @@ function compress_and_save_image () { OUT_IMAGE_PATH=$1-new else echo "Converting image using qemu-img convert" - qemu-img convert ${COMPRESS_IMAGE:+-c} -f raw $TMP_IMAGE_PATH -O $IMAGE_TYPE $EXTRA_OPTIONS $1-new + qemu-img convert ${COMPRESS_IMAGE:+-c} -f raw -O $IMAGE_TYPE $EXTRA_OPTIONS $TMP_IMAGE_PATH $1-new fi OUT_IMAGE_PATH=$1-new