create the hda.raw disk image in the right directory
authorMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 25 Jan 2008 13:30:18 +0000 (13:30 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 25 Jan 2008 13:30:18 +0000 (13:30 +0000)
system/template-Qemu/start-qemu-node

index 463ee15..40692b1 100755 (executable)
@@ -27,14 +27,13 @@ if [ -e "$HDA" ]; then
 fi
 #Creating new HDA
 echo "Creating hard disk for Qemu install under $HDA"
+cd ~/$NODE_DIR
 set $(qemu-img create $FILENAME 5G)
 if [ -z "$1" ];then
        echo "Can't Create disk image..."
        exit 1
 fi
 shift $(($# - 1))
-#unfortunately :-( qemu-img don't accept a path for image but only filename
-mv ~/$FILENAME $HDA
 echo "New $HDA is created..."
 
 #Command for running the Qemu Emulator