From: Michael Tremer Date: Sun, 26 Dec 2010 14:53:40 +0000 (+0100) Subject: Disallow taking hard disk IDs from qemu. X-Git-Tag: v0.13~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ea065417109fce0638b2a4c197625eaee095698;p=oddments%2Ffireinfo.git Disallow taking hard disk IDs from qemu. --- diff --git a/fireinfo/system.py b/fireinfo/system.py index 7858600..7e9a6a4 100644 --- a/fireinfo/system.py +++ b/fireinfo/system.py @@ -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.