We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eccaa80 commit 4f51c5cCopy full SHA for 4f51c5c
1 file changed
functions
@@ -812,7 +812,16 @@ function upload_image() {
812
DISK_FORMAT=qcow2
813
CONTAINER_FORMAT=bare
814
;;
815
- *) echo "Do not know what to do with $IMAGE_FNAME"; false;;
+ *.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
825
esac
826
827
if [ "$CONTAINER_FORMAT" = "bare" ]; then
0 commit comments