Disable Suspend to RAM (S3) if SecureBoot or SMM are enabled

This commit is contained in:
Martin Wimpress 2021-10-19 00:17:40 +01:00
parent a4eddaa9e5
commit b9f90d12c3
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -492,6 +492,11 @@ function vm_boot() {
;;
esac
# Disable suspend to RAM if SecureBoot/SMM is enabled
if [ "${secureboot}" == "on" ] || [ "${SMM}" == "on" ]; then
GUEST_TWEAKS="${GUEST_TWEAKS} -global ICH9-LPC.disable_s3=1"
fi
echo " - Disk: ${disk_img} (${disk_size})"
if [ ! -f "${disk_img}" ]; then
# If there is no disk image, create a new image.