Fix bootloader handling.
authorEwan Mellor <ewan@xensource.com>
Sun, 28 Jan 2007 18:38:47 +0000 (18:38 +0000)
committerEwan Mellor <ewan@xensource.com>
Sun, 28 Jan 2007 18:38:47 +0000 (18:38 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py

index cc0280ac97632a924f6f65b65708eb1509e88aeb..4d55e03091b47367193ec40572f42802f34331a9 100644 (file)
@@ -1661,7 +1661,9 @@ class XendDomainInfo:
                 log.error(msg)
                 raise VmError(msg)
 
-            disk = disks[0]
+            devinfo = self.info['devices'][disks[0]]
+            devtype = devinfo[0]
+            disk = devinfo[1]['uname']
 
             fn = blkdev_uname_to_file(disk)
             mounted = devtype == 'tap' and not os.stat(fn).st_rdev