From 4f51c5cf037a6313f267a47b84e5c094050acccf Mon Sep 17 00:00:00 2001 From: Henning Sprang Date: Tue, 16 Oct 2012 13:19:06 +0200 Subject: [PATCH] add correct handling of iso images for live cd's --- functions | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/functions b/functions index 0d0df51fad..f7e38ba050 100644 --- a/functions +++ b/functions @@ -812,7 +812,16 @@ function upload_image() { DISK_FORMAT=qcow2 CONTAINER_FORMAT=bare ;; - *) echo "Do not know what to do with $IMAGE_FNAME"; false;; + *.iso) + IMAGE="$FILES/${IMAGE_FNAME}" + IMAGE_NAME=$(basename "$IMAGE" ".iso") + DISK_FORMAT=iso + CONTAINER_FORMAT=bare + ;; + *) echo "Do not know what to do with $IMAGE_FNAME"; + # FIXME: that seems not to be enough to stop doing something here! we end up getting the previous image twice for each image that is unknown?! + false + ;; esac if [ "$CONTAINER_FORMAT" = "bare" ]; then