addtions to test script

This commit is contained in:
PoliEcho 2025-08-17 15:14:07 +02:00
parent 83ef67ad28
commit fa35f79e34
4 changed files with 7 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

14
test.sh
View File

@ -1,16 +1,16 @@
#!/bin/bash
cp /usr/share/edk2/x64/OVMF_VARS.4m.fd ./my_ovmf_vars.fd
if [ $# -ge 1 ]; then
OVMF_CODE_PATH=$1
else
OVMF_CODE_PATH=/usr/share/edk2/x64/OVMF_CODE.4m.fd
fi
qemu-system-x86_64 \
-machine type=q35,accel=kvm \
-drive if=pflash,format=raw,readonly=on,file=/usr/share/edk2/x64/OVMF_CODE.4m.fd \
-drive if=pflash,format=raw,file=./my_ovmf_vars.fd \
-drive if=pflash,format=raw,readonly=on,file="$OVMF_CODE_PATH" \
-hda fat:rw:build \
-boot order=c \
-smp 4 \
-s \
-serial mon:stdio
rm ./my_ovmf_vars.fd
-serial mon:stdio