diff --git a/src/boot.sh b/src/boot.sh index 2257d4da..7af4ee87 100644 --- a/src/boot.sh +++ b/src/boot.sh @@ -21,6 +21,9 @@ case "${BOOT_MODE,,}" in ROM="OVMF_CODE_4M.ms.fd" VARS="OVMF_VARS_4M.ms.fd" ;; + windows_legacy) + BOOT_OPTS="" + ;; legacy) BOOT_OPTS="" ;; @@ -30,9 +33,8 @@ case "${BOOT_MODE,,}" in ;; esac -if [[ "${BOOT_MODE,,}" != "legacy" ]]; then +if [[ "${BOOT_MODE,,}" != "legacy" ]] && [[ "${BOOT_MODE,,}" != "windows_legacy" ]]; then - BOOT_OPTS="" OVMF="/usr/share/OVMF" DEST="$STORAGE/${BOOT_MODE,,}" diff --git a/src/proc.sh b/src/proc.sh index c78a4f2a..648224d5 100644 --- a/src/proc.sh +++ b/src/proc.sh @@ -39,7 +39,7 @@ if [[ "$KVM" != [Nn]* ]]; then CPU_FEATURES="kvm=on" KVM_OPTS=",accel=kvm -enable-kvm" - if [[ "${BOOT_MODE,,}" == "windows" ]]; then + if [[ "${BOOT_MODE,,}" == "windows" ]] || [[ "${BOOT_MODE,,}" == "windows_legacy" ]]; then CPU_FEATURES="kvm=on,+hypervisor,+invtsc,l3-cache=on,migratable=no,hv_passthrough"