From 7a702fc638870e618cffa3d278f79dadfcc64456 Mon Sep 17 00:00:00 2001 From: Vadim Ponomarev Date: Mon, 14 May 2018 17:48:37 +0300 Subject: [PATCH] Add raw format support to image creator script. This patch adds new type 'raw' to the '-t' option of the diskimage-create script for creating raw Octavia Amphora images. Change-Id: Ib369009de5b42bd9f65bf43f9a0f23189a89de41 --- diskimage-create/diskimage-create.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/diskimage-create/diskimage-create.sh b/diskimage-create/diskimage-create.sh index 4e7734bc0c..ed9e8adc3f 100755 --- a/diskimage-create/diskimage-create.sh +++ b/diskimage-create/diskimage-create.sh @@ -32,7 +32,7 @@ usage() { echo " [-p]" echo " [-r ]" echo " [-s **2** | ]" - echo " [-t **qcow2** | tar | vhd ]" + echo " [-t **qcow2** | tar | vhd | raw ]" echo " [-v]" echo " [-w ]" echo @@ -148,7 +148,8 @@ while getopts "a:b:c:d:ehi:no:pt:r:s:vw:x" opt; do AMP_IMAGETYPE=$OPTARG if [ $AMP_IMAGETYPE != "qcow2" ] && \ [ $AMP_IMAGETYPE != "tar" ] && \ - [ $AMP_IMAGETYPE != "vhd" ]; then + [ $AMP_IMAGETYPE != "vhd" ] && \ + [ $AMP_IMAGETYPE != "raw" ]; then echo "Error: Unsupported image type " $AMP_IMAGETYPE " specified" exit 3 fi