From 7347577784b739fd2b1f2dca1aebf494d22f3f78 Mon Sep 17 00:00:00 2001 From: Gregory Haynes Date: Wed, 1 Apr 2015 20:28:44 +0000 Subject: [PATCH] Correctly handle raw type ordering We need to run raw outputting last, and were incorrectly detecting that image type. Change-Id: Idfbe46c34e783046b940d3eb28c846a0cf9ac0a6 --- bin/disk-image-create | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/disk-image-create b/bin/disk-image-create index 61337051..67928ab0 100755 --- a/bin/disk-image-create +++ b/bin/disk-image-create @@ -251,7 +251,7 @@ has_raw_type= if [ "$IS_RAMDISK" == "0" ]; then for IMAGE_TYPE in ${IMAGE_TYPES[@]} ; do # We have to do raw last because it is destructive - if [ "$IMAGE_NAME" = "raw" ]; then + if [ "$IMAGE_TYPE" = "raw" ]; then has_raw_type=1 else compress_and_save_image $IMAGE_NAME.$IMAGE_TYPE