create the disk image at the right place
authorTony Mack <tmack@cs.princeton.edu>
Tue, 22 Jan 2008 17:03:32 +0000 (17:03 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 22 Jan 2008 17:03:32 +0000 (17:03 +0000)
system/template-Qemu/env-qemu

index 4929d0d..7979e16 100755 (executable)
@@ -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