feat: Improve CPU detection (#164)

This commit is contained in:
Kroese 2024-11-18 13:33:12 +01:00 committed by GitHub
parent cc57dce4d1
commit ded63e0e52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -553,7 +553,7 @@ if [[ "${MACHINE,,}" != "virt" ]]; then
else
FALLBACK="usb"
fi
[[ "${BOOT_MODE:-}" == "windows_legacy" ]] && FALLBACK="auto"
if [ -z "${MEDIA_TYPE:-}" ]; then

View file

@ -68,6 +68,7 @@ CPU="${CPU// CPU/}"
CPU="${CPU// 16 Core/}"
CPU="${CPU// Processor/}"
CPU="${CPU// Quad core/}"
CPU="${CPU// Core TM/ Core}"
CPU="${CPU// with Radeon Graphics/}"
[ -z "${CPU// /}" ] && CPU="Unknown"