From 09a707846ccc4abd8ce30d1766d9a0ce01803bdf Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Fri, 11 Mar 2022 15:25:36 +0000 Subject: [PATCH] Fixed boot problems and logic correction in FreeDOS support. Fixes #382 (#421) * minor correction in freedos * freedos fix - boot problems needed smm on --- build-docs | 2 +- quickemu | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build-docs b/build-docs index 87be39d..3ede604 160000 --- a/build-docs +++ b/build-docs @@ -1 +1 @@ -Subproject commit 87be39d8b8fc18b2d19012e602c19597e640fb1f +Subproject commit 3ede604a11b7a666f91bb19705d32d73fb0bd4d7 diff --git a/quickemu b/quickemu index 49655d4..b7da30e 100755 --- a/quickemu +++ b/quickemu @@ -476,6 +476,12 @@ function vm_boot() { NET_DEVICE="rtl8139" fi + if [ "${guest_os}" == "freedos" ] ; then + # fix for #382 + SMM="on" + fi + + if [ -z "${disk_size}" ]; then disk_size="16G" fi @@ -933,7 +939,7 @@ function vm_boot() { args+=(-drive media=cdrom,index=1,file="${fixed_iso}") fi - if [ -n "{iso}" ] && [ "${guest_os}" == "freedos" ]; then + if [ -n "${iso}" ] && [ "${guest_os}" == "freedos" ]; then # FreeDOS reboots after partitioning the disk, and QEMU tries to boot from disk after first restart # This flag sets the boot order to cdrom,disk. It will persist until powering down the VM args+=(-boot order=dc)