Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archinstall/__init__.py2
-rw-r--r--archinstall/lib/hardware.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/__init__.py b/archinstall/__init__.py
index b914c7ec..89792477 100644
--- a/archinstall/__init__.py
+++ b/archinstall/__init__.py
@@ -23,7 +23,7 @@ from .lib.user_interaction import *
parser = ArgumentParser()
-__version__ = "2.2.0.RC1"
+__version__ = "2.2.0"
def initialize_arguments():
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