Unverified Commit 8c2bd073 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

CPU

parent 86bede79
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -31,7 +31,8 @@ if [ -z "$GUEST_SERIAL" ]; then
fi

CPU=$(lscpu | sed -nr '/Model name/ s/.*:\s*(.*) @ .*/\1/p' | sed ':a;s/  / /;ta' | sed s/"(R)"//g | sed s/"-"//g | sed 's/[^[:alnum:] ]\+//g')
[ -z "$CPU" ] && CPU="QEMU, Virtual CPU, X86_64"
[ -z "$CPU" ] && CPU="QEMU"
CPU="$CPU, Virtual CPU, X86_64"

./run/serial.bin -cpu="${CPU_CORES}" \
                -cpu_arch="${CPU}" \