diskimage-create: Support testing other image types
When building image types other then qcow2 there's no way to test them currently. When specifying an existing file, just use that for testing. Change-Id: I99f1a9e10642c4611c9b8985a6945bd82f1cce50 Signed-off-by: Sven Wegener <sven.wegener@inovex.de>
This commit is contained in:
parent
0f814043ec
commit
4669ceeba7
@ -19,7 +19,9 @@
|
|||||||
|
|
||||||
echo "Examining the Amphora image. This will take some time."
|
echo "Examining the Amphora image. This will take some time."
|
||||||
|
|
||||||
if [ "$1" ]; then
|
if [ "$1" -a -f "$1" ]; then
|
||||||
|
AMP_IMAGE_LOCATION=$1
|
||||||
|
elif [ "$1" ]; then
|
||||||
AMP_IMAGE_LOCATION=$1/amphora-x64-haproxy.qcow2
|
AMP_IMAGE_LOCATION=$1/amphora-x64-haproxy.qcow2
|
||||||
else
|
else
|
||||||
AMP_IMAGE_LOCATION=amphora-x64-haproxy.qcow2
|
AMP_IMAGE_LOCATION=amphora-x64-haproxy.qcow2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user