From f24e29920b9ec40e924c71bbe1999e027d61390e Mon Sep 17 00:00:00 2001 From: Angel Noam Date: Thu, 11 May 2017 15:13:29 +0300 Subject: [PATCH] Add support for image name end with .raw Change-Id: If3bd42825a29755fa8e68fa5661d068c6f0019d2 --- functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions b/functions index 8968a1861b..f842f63038 100644 --- a/functions +++ b/functions @@ -310,6 +310,11 @@ function upload_image { disk_format=qcow2 container_format=bare ;; + *.raw) + image_name=$(basename "$image" ".raw") + disk_format=raw + container_format=bare + ;; *.iso) image_name=$(basename "$image" ".iso") disk_format=iso