From 46c2bd9226b04f4c7fb6aadff95cc88177d638b0 Mon Sep 17 00:00:00 2001 From: Rory McCann Date: Sun, 1 Feb 2009 18:22:35 +0000 Subject: [PATCH] If the harddrive image file doesn't exist, recreate it --- bin/run-cd.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/run-cd.sh b/bin/run-cd.sh index 6fc8b7f..ed8f947 100755 --- a/bin/run-cd.sh +++ b/bin/run-cd.sh @@ -1,4 +1,9 @@ #! /bin/bash ./bin/setup-kqemu.sh + +if [[ ! -f hda.qcow ]] ; then + echo "Creating the harddrive image file" + qemu-img create -f qcow2 hda.qcow 10G +fi sudo qemu -cdrom $* -hda hda.qcow -m 256 -boot d -monitor stdio -- 2.11.4.GIT