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
This commit is contained in:
parent
d6c7e57835
commit
7a702fc638
@ -32,7 +32,7 @@ usage() {
|
||||
echo " [-p]"
|
||||
echo " [-r <root password> ]"
|
||||
echo " [-s **2** | <size in GB> ]"
|
||||
echo " [-t **qcow2** | tar | vhd ]"
|
||||
echo " [-t **qcow2** | tar | vhd | raw ]"
|
||||
echo " [-v]"
|
||||
echo " [-w <working directory> ]"
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user