From: Tony Mack Date: Tue, 22 Jan 2008 17:03:32 +0000 (+0000) Subject: create the disk image at the right place X-Git-Tag: 2008-02-11-last-vmware-support~126 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7ec9f29acf8ca2cb8a506338bc6b8b64d27bd157;p=tests.git create the disk image at the right place --- diff --git a/system/template-Qemu/env-qemu b/system/template-Qemu/env-qemu index 4929d0d..7979e16 100755 --- a/system/template-Qemu/env-qemu +++ b/system/template-Qemu/env-qemu @@ -107,7 +107,10 @@ start () { rm -rf hda_5.raw fi echo "Creating hard disk for Qemu install..." - set $(qemu-img create hda_5.raw 5G) >/dev/null + set $(pwd) + local_path=$1 + shift $(($# - 1)) + set $(qemu-img create $local_path/hda_5.raw 5G) >/dev/null if [ -z "$1" ];then echo "Can't Create disk image..." fi