From 7b1574500e27292e42b737b15b1bfebcdacae5bc Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Sun, 27 Apr 2025 23:43:58 +1000 Subject: [PATCH] revised uefi boot setup --- vm.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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) -- 2.47.2