]> git.ipfire.org Git - oddments/fireinfo.git/commitdiff
Disallow taking hard disk IDs from qemu.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 26 Dec 2010 14:53:40 +0000 (15:53 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 26 Dec 2010 14:53:40 +0000 (15:53 +0100)
fireinfo/system.py

index 7858600bd0ac10b9664258fa05f072951ec7f919..7e9a6a4c15d056f5f2bc4331df1b50c951a43d29 100644 (file)
@@ -213,7 +213,7 @@ class System(object):
                # no other ID was found, yet.
                if not ids:
                        root_disk_serial = self.root_disk_serial
-                       if root_disk_serial:
+                       if root_disk_serial and not root_disk_serial.startswith("QM000"):
                                ids.append(root_disk_serial)
 
                # As last resort, we use the UUID from pakfire.