From f428be98522a6ca8c9ca5074a36615a4593c2849 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Thu, 8 Feb 2024 23:13:20 +1100 Subject: [PATCH] Prepare an empty 4G disk.raw unless there is one already. --- run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run.sh b/run.sh index 36c07b0..86895f3 100755 --- 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 -- 2.39.2