add separate --vm-type and --vm-disk options
authorLudwig Nussel <ludwig.nussel@suse.de>
Thu, 29 Apr 2010 09:00:44 +0000 (11:00 +0200)
committerLudwig Nussel <ludwig.nussel@suse.de>
Thu, 29 Apr 2010 14:08:22 +0000 (16:08 +0200)
build

diff --git a/build b/build
index 36cfbd2..91e9e38 100755 (executable)
--- a/build
+++ b/build
@@ -753,6 +753,23 @@ while test -n "$1"; do
       --lxc)
        VM_TYPE=${PARAM##*-}
       ;;
+      --vm-type)
+       needarg
+       VM_TYPE="$ARG"
+       case "$VM_TYPE" in
+           xen|kvm|uml|qemu|lxc) ;;
+           *)
+               echo "VM $VM_TYPE not supported"
+               cleanup_and_exit
+           ;;
+       esac
+       shift
+      ;;
+      --vm-disk)
+       needarg
+       VM_IMAGE="$ARG"
+       shift
+      ;;
       *-xenswap|*-swap)
        needarg
        VM_SWAP="$ARG"