Add macos_release VM configuration variable. Tune macOS based on release

Tune Qemu optimisations based on the macOS release, or fallback to lowest common supported options if macos_release is not specified.
This commit is contained in:
Martin Wimpress 2021-10-04 17:34:31 +01:00
parent c240a17bda
commit 561d04a2b5
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3
3 changed files with 47 additions and 19 deletions

View file

@ -148,12 +148,9 @@ EOF
echo "fixed_iso=\"${VM_PATH}/${ISO_FILE}\"" >> "${OS}-${RELEASE}.conf"
fi
# VirtIO Block Media doesn't work in High Sierra or Mojave so use SATA
case ${RELEASE} in
high-sierra|mojave)
echo "virtio_blk=\"off\"" >> "${OS}-${RELEASE}.conf"
;;
esac
if [ "${OS}" == "macos" ]; then
echo "macos_release=\"${RELEASE}\"" >> "${OS}-${RELEASE}.conf"
fi
fi
}