Delete -new image once copied

Before, this was created on /tmp/image.XXX so was removed at the
end of the script.

Change-Id: I8ceb97626d389c5bcb66fa3058f74388009ea677
This commit is contained in:
Ghe Rivero 2013-09-04 12:03:13 +00:00
parent d339f9b25e
commit a495079695
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@ function compress_and_save_image () {
qemu-img convert ${COMPRESS_IMAGE:+-c} -f raw $TMP_IMAGE_PATH -O $IMAGE_TYPE $1-new
rm $TMP_IMAGE_PATH
TMP_IMAGE_PATH=$1-new save_image $1
TMP_IMAGE_PATH=$1-new
save_image $1
remove_image
}
function remove_image () {