From: Ralph Ronnquist Date: Thu, 8 Feb 2024 12:13:20 +0000 (+1100) Subject: Prepare an empty 4G disk.raw unless there is one already. X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=f428be98522a6ca8c9ca5074a36615a4593c2849;p=rrq%2Frescue-boot.git Prepare an empty 4G disk.raw unless there is one already. --- 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