fix: Use 1 as default sockets value

This commit is contained in:
Liam 2024-08-24 12:58:01 -07:00 committed by Martin Wimpress
parent 070514d449
commit 35f8e9333d
1 changed files with 4 additions and 0 deletions

View File

@ -323,6 +323,10 @@ function configure_cpu() {
HOST_CPU_SOCKETS=$(get_cpu_info 'Socket')
HOST_CPU_VENDOR=$(get_cpu_info 'Vendor')
if [ "${HOST_CPU_SOCKETS}" = "-" ]; then
HOST_CPU_SOCKETS=1
fi
CPU_MODEL="host"
QEMU_ACCEL="tcg"
# Configure appropriately for the host platform