From: Ralph Ronnquist Date: Sun, 27 Apr 2025 13:43:58 +0000 (+1000) Subject: revised uefi boot setup X-Git-Url: https://git.rrq.selfhost.au/?a=commitdiff_plain;h=7b1574500e27292e42b737b15b1bfebcdacae5bc;p=rrq%2Ftiniest.git revised uefi boot setup --- diff --git a/vm.sh b/vm.sh index 452b475..4e8522a 100755 --- a/vm.sh +++ b/vm.sh @@ -48,7 +48,16 @@ case "$MEDIA" in esac BOOT="-boot menu=on,splash=boot.jpg,splash-time=60000" -[ $(( $REPLY % 2 )) -eq 0 ] && BOOT="-bios /usr/share/OVMF/OVMF_CODE.fd" +if [ $(( $REPLY % 2 )) -eq 0 ] ; then + { + dd if=/usr/share/OVMF/OVMF_CODE_4M.fd of=pcode.bin + dd if=/usr/share/OVMF/OVMF_VARS_4M.fd of=pvars.bin + } 2>/dev/null + BOOT=" + -drive if=pflash,readonly=on,format=raw,file=pcode.bin + -drive if=pflash,readonly=off,format=raw,file=pvars.bin + " +fi case "$NET" in vde)