arc: add cpuflags check to arc
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user