]> git.ipfire.org Git - oddments/fireinfo.git/commitdiff
Check if bios vendor is "innotek GmbH" to get if the system is virtualized.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Dec 2010 20:17:06 +0000 (21:17 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Dec 2010 20:17:06 +0000 (21:17 +0100)
fireinfo/hypervisor.py

index b659d6e3096ee24fc05be14410af04eadc6960ff..46b58e14e3ac940e837ba5c48ee184f025b8492f 100644 (file)
@@ -64,7 +64,8 @@ class Hypervisor(object):
                        Otherwise: false.
                """
                return _fireinfo.is_virtualized() or \
-                       "hypervisor" in self.system.cpu.flags
+                       "hypervisor" in self.system.cpu.flags or \
+                       self.system.bios_vendor == "innotek GmbH"
 
 
 if __name__ == "__main__":