Unverified Commit 45bfb26d authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Support older Windows versions (#382)

parent 888b4a1e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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,,}"

+1 −1
Original line number Diff line number Diff line
@@ -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"