feat: Support older Windows versions (#382)
This commit is contained in:
parent
888b4a1e9e
commit
45bfb26da0
2 changed files with 5 additions and 3 deletions
|
@ -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,,}"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue