Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/hardware.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/archinstall/lib/hardware.py b/archinstall/lib/hardware.py
index f38d46da..c64d21a9 100644
--- a/archinstall/lib/hardware.py
+++ b/archinstall/lib/hardware.py
@@ -63,13 +63,19 @@ def has_wifi() -> bool:
def has_amd_cpu() -> bool:
- if subprocess.check_output("lscpu | grep AMD", shell=True).strip().decode():
- return True
+ try:
+ return subprocess.check_output("lscpu | grep AMD", shell=True).strip().decode()
+ except:
+ pass
return False
def has_intel_cpu() -> bool:
- return subprocess.check_output("lscpu | grep Intel", shell=True).strip().decode()
+ try:
+ return subprocess.check_output("lscpu | grep Intel", shell=True).strip().decode()
+ except:
+ pass
+ return False
def has_uefi() -> bool:
return os.path.isdir('/sys/firmware/efi')