fix: CPU features (#496)

This commit is contained in:
Kroese 2023-12-25 05:58:14 +01:00 committed by GitHub
parent 5a7ecb48d6
commit f089acc01a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,13 @@ if [[ "$ARCH" == "amd64" && "$KVM" != [Nn]* ]]; then
else
[[ "$CPU_MODEL" == "host"* ]] && CPU_MODEL="max,$CPU_FEATURES"
if [[ "$CPU_MODEL" == "host"* ]]; then
if [[ "$ARCH" == "amd64" ]]; then
CPU_MODEL="max,$CPU_FEATURES"
else
CPU_MODEL="qemu64,$CPU_FEATURES"
fi
fi
fi