From: Ludwig Nussel Date: Thu, 29 Apr 2010 09:00:44 +0000 (+0200) Subject: add separate --vm-type and --vm-disk options X-Git-Tag: obs_2.0~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7960f4c58b1f483ebfd86a4086198699e0e1ee1f;p=platform%2Fupstream%2Fbuild.git add separate --vm-type and --vm-disk options --- diff --git a/build b/build index 36cfbd2..91e9e38 100755 --- 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"