# HG changeset patch # User Jim Fehlig # Date 1177975982 21600 # Node ID d89ce902508ed4d5f1afa1fbb85b30a6a9ed805e # Parent 0f9b97523450aae06d42852bdac9bbca3d6033d1 Ensure 'bootable' entry is set for domains containing multiple tap devices. When defining new domains containing more than one tap device, only the first has 'bootable' entry set. Subsequent tap devices have no bootable entry and generate a KeyError when the entry is accessed in XendDomainInfo._configureBootloader. Signed-off-by: Jim Fehlig diff -r 0f9b97523450 -r d89ce902508e tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py Sat Apr 28 09:44:24 2007 +0100 +++ b/tools/python/xen/xend/XendConfig.py Mon Apr 30 17:33:02 2007 -0600 @@ -1001,6 +1001,8 @@ class XendConfig(dict): # Compat hack -- this is the first disk, so mark it # bootable. dev_info['bootable'] = 1 + else: + dev_info['bootable'] = 0 target['vbd_refs'].append(dev_uuid) elif dev_type == 'vfb':