mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
[XEND] Fix pygrub when run server-side on a domain with blktap disks.
Equivalent fix to xen-unstable 11706:bf0deb09facd847db87ab59ed377db6eb0f5a3ad. Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
83e445d75e
commit
56906a3ab2
1 file changed
+1
-1
@@ -1440,7 +1440,7 @@ class XendDomainInfo:
|
||||
blcfg = None
|
||||
# FIXME: this assumes that we want to use the first disk device
|
||||
for (n, c) in self.info.all_devices_sxpr():
|
||||
if not n or not c or n != "vbd":
|
||||
if not n or not c or not(n in ["vbd", "tap"]):
|
||||
continue
|
||||
disk = sxp.child_value(c, "uname")
|
||||
if disk is None:
|
||||
|
||||