From 1cdec53605959dc1bb8fbd2486edc2eae51dd657 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 8 Apr 2023 02:22:28 +0200 Subject: [PATCH] CPU --- serial.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/serial.sh b/serial.sh index af0a228..6b651be 100644 --- a/serial.sh +++ b/serial.sh @@ -31,8 +31,12 @@ 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" -CPU="$CPU, Virtual CPU, X86_64" + +if [ ! -z "$CPU" ]; then + CPU="$CPU,," +else + CPU="QEMU, Virtual CPU, X86_64" +fi ./run/serial.bin -cpu="${CPU_CORES}" \ -cpu_arch="${CPU}" \