Skip to content

Commit 4f51c5c

Browse files
author
Henning Sprang
committed
add correct handling of iso images for live cd's
1 parent eccaa80 commit 4f51c5c

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

functions

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,16 @@ function upload_image() {
812812
DISK_FORMAT=qcow2
813813
CONTAINER_FORMAT=bare
814814
;;
815-
*) echo "Do not know what to do with $IMAGE_FNAME"; false;;
815+
*.iso)
816+
IMAGE="$FILES/${IMAGE_FNAME}"
817+
IMAGE_NAME=$(basename "$IMAGE" ".iso")
818+
DISK_FORMAT=iso
819+
CONTAINER_FORMAT=bare
820+
;;
821+
*) echo "Do not know what to do with $IMAGE_FNAME";
822+
# 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?!
823+
false
824+
;;
816825
esac
817826

818827
if [ "$CONTAINER_FORMAT" = "bare" ]; then

0 commit comments

Comments
 (0)