From 7edd2aee670c93c81ba948af0447f6731453242d Mon Sep 17 00:00:00 2001 From: ptoohill1 Date: Tue, 8 Mar 2016 22:04:22 -0600 Subject: [PATCH] Add VHD support in DIB Some deployers may require use of VHD format, allow this option. Change-Id: I0e2599898598fd6636f116357598a12f19b8f99f --- 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 028d6d15ec..010d6b5913 100755 --- a/diskimage-create/diskimage-create.sh +++ b/diskimage-create/diskimage-create.sh @@ -28,7 +28,7 @@ usage() { echo " [-o **amphora-x64-haproxy** | ]" echo " [-r ]" echo " [-s **5** | ]" - echo " [-t **qcow2** | tar ]" + echo " [-t **qcow2** | tar | vhd ]" echo " [-v]" echo " [-w ]" echo @@ -99,7 +99,8 @@ while getopts "a:b:c:hi:o:t:r:s:vw:" opt; do t) AMP_IMAGETYPE=$OPTARG if [ $AMP_IMAGETYPE != "qcow2" ] && \ - [ $AMP_IMAGETYPE != "tar" ]; then + [ $AMP_IMAGETYPE != "tar" ] && \ + [ $AMP_IMAGETYPE != "vhd" ]; then echo "Error: Unsupported image type " $AMP_IMAGETYPE " specified" exit 3 fi