fix: Use 1 as default sockets value
This commit is contained in:
parent
070514d449
commit
35f8e9333d
4
quickemu
4
quickemu
|
@ -323,6 +323,10 @@ function configure_cpu() {
|
||||||
HOST_CPU_SOCKETS=$(get_cpu_info 'Socket')
|
HOST_CPU_SOCKETS=$(get_cpu_info 'Socket')
|
||||||
HOST_CPU_VENDOR=$(get_cpu_info 'Vendor')
|
HOST_CPU_VENDOR=$(get_cpu_info 'Vendor')
|
||||||
|
|
||||||
|
if [ "${HOST_CPU_SOCKETS}" = "-" ]; then
|
||||||
|
HOST_CPU_SOCKETS=1
|
||||||
|
fi
|
||||||
|
|
||||||
CPU_MODEL="host"
|
CPU_MODEL="host"
|
||||||
QEMU_ACCEL="tcg"
|
QEMU_ACCEL="tcg"
|
||||||
# Configure appropriately for the host platform
|
# Configure appropriately for the host platform
|
||||||
|
|
Loading…
Reference in New Issue