arc: add cpuflags check to arc

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-01-27 17:57:40 +01:00
parent 8f7847e126
commit 454dcef52a

View File

@@ -413,7 +413,7 @@ function make() {
KVMSUPPORT="$(readConfigKey "arc.kvmsupport" "${USER_CONFIG_FILE}")"
if [ "${KVMSUPPORT}" = "true" ]; then
# Check if KVM is enabled
if ! grep -q '^flags.*(vmx|svm)' /proc/cpuinfo; then
if ! egrep -q '^flags.*(vmx|svm)' /proc/cpuinfo; then
dialog --backtitle "$(backtitle)" --title "Arc Build" \
--msgbox "Virtualization is not enabled in BIOS.\nDisable KVM Support for now." 0 0
writeConfigKey "arc.kvmsupport" "false" "${USER_CONFIG_FILE}"
@@ -748,6 +748,10 @@ function addonSelection() {
if [ "${PLATFORM}" = "epyc7002" ]; then
KVER="${PRODUCTVER}-${KVER}"
fi
# Check for ACPI Support
if ! grep -q "^flags.*acpi.*" /proc/cpuinfo; then
deleteConfigKey "addons.acpid" "${USER_CONFIG_FILE}"
fi
# read addons from user config
unset ADDONS
declare -A ADDONS