Prepare an empty 4G disk.raw unless there is one already.
authorRalph Ronnquist <rrq@rrq.au>
Thu, 8 Feb 2024 12:13:20 +0000 (23:13 +1100)
committerRalph Ronnquist <rrq@rrq.au>
Thu, 8 Feb 2024 12:13:20 +0000 (23:13 +1100)
run.sh

diff --git a/run.sh b/run.sh
index 36c07b0d22fb378c7437a10ad7dbcc252ccc9a9f..86895f3fe8b56abfdcea33a1010c8598359b68bd 100755 (executable)
--- a/run.sh
+++ b/run.sh
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 DISK=disk.raw
+[ -f $DISK ] || dd if=/dev/null of=$DISK bs=1G count=0 seek=4
 CD=$1
 FS=FS.sqfs
 PCODE=/usr/share/OVMF/OVMF_CODE_4M.fd