index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-06-04 15:07:42 +0200 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2021-06-04 15:07:42 +0200 |
commit | 7d60287a3d24303a4e4518b75058ffd2f1feca8d (patch) | |
tree | a641fa6ea284ff677b549f00c471dcdd1f501dc3 /archinstall/lib/hardware.py | |
parent | 515cd4daf01d1239843530093bdae876f4d7f841 (diff) | |
parent | 7a40f1dc0bf130847e7deba55f11cb0b7319d6a2 (diff) |
-rw-r--r-- | archinstall/lib/hardware.py | 2 |
diff --git a/archinstall/lib/hardware.py b/archinstall/lib/hardware.py index 7c164096..6a3b166d 100644 --- a/archinstall/lib/hardware.py +++ b/archinstall/lib/hardware.py @@ -110,7 +110,7 @@ def cpu_vendor() -> Optional[str]: def is_vm() -> bool: try: # systemd-detect-virt issues a non-zero exit code if it is not on a virtual machine - if b"".join(SysCommand("systemd-detect-virt")).lower() != b"none": + if b"none" not in b"".join(SysCommand("systemd-detect-virt")).lower(): return True except: pass |