index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-11-05 15:48:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-05 15:48:03 +0000 |
commit | 0071a069080732047e11309134869f3ab40c642c (patch) | |
tree | 9ae4cde24f02046ccdc93a988c09273619cd545c /archinstall/lib/hardware.py | |
parent | 3993917462219de75cd00aefdd4fe318402a22af (diff) | |
parent | b6ab6786316c5e4d8101007c4e96e64585aa7234 (diff) |
-rw-r--r-- | archinstall/lib/hardware.py | 4 |
diff --git a/archinstall/lib/hardware.py b/archinstall/lib/hardware.py index bbfb06a9..cf99a530 100644 --- a/archinstall/lib/hardware.py +++ b/archinstall/lib/hardware.py @@ -99,9 +99,13 @@ def has_wifi() -> bool: def has_cpu_vendor(vendor_id: str) -> bool: return any(cpu.get("vendor_id") == vendor_id for cpu in cpuinfo()) + has_amd_cpu = partial(has_cpu_vendor, "AuthenticAMD") + + has_intel_cpu = partial(has_cpu_vendor, "GenuineIntel") + def has_uefi() -> bool: return os.path.isdir('/sys/firmware/efi') |