X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=run.sh;h=36c07b0d22fb378c7437a10ad7dbcc252ccc9a9f;hb=617be7563a92b77d4d224930cfa8ad9aa1aa9af5;hp=e09fe550831a03a762dff9d83808ff2e3a4a0452;hpb=f53afab0472387745af2755911c113ed5b4f699f;p=rrq%2Frescue-boot.git diff --git a/run.sh b/run.sh index e09fe55..36c07b0 100755 --- a/run.sh +++ b/run.sh @@ -6,10 +6,12 @@ FS=FS.sqfs PCODE=/usr/share/OVMF/OVMF_CODE_4M.fd PVARS=/usr/share/OVMF/OVMF_VARS_4M.fd cp $PVARS pvars.bin -EFI=" +if [ -n "$EFI" ] ; then + EFI=" -drive if=pflash,readonly=on,format=raw,file=$PCODE -drive if=pflash,readonly=off,format=raw,file=pvars.bin " +fi NET="-nic vde,sock=/run/vde.ctl,model=e1000,mac=06:38:d0:34:20:d2" QEMU=qemu-system-x86_64 [ -z "${CD##*i386*}" ] && QEMU=qemu-system-i386 @@ -18,7 +20,7 @@ exec $QEMU -name "${CD%.img}" -m 2G -M pc,accel=kvm -cpu host \ -drive media=disk,format=raw,file=$DISK \ -virtfs local,path=FS,mount_tag=FS,security_model=passthrough \ -serial mon:stdio -echr 0x1c -vga std \ - $NET + $EFI $NET # -boot menu=on,splash-time=60000 \ # -kernel FS/vmlinuz -initrd FS/initrd.img \ # -append "root=FS rootfstype=9p console=ttyS0"