ia64/xen-unstable

changeset 12518:ea457d9d3fb2

Cleanup after the bootloader even if the domain building fails.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Mon Nov 20 16:59:07 2006 +0000 (2006-11-20)
parents b0a58923fab5
children 0699c3eff7a3 82ba3c086e6c
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon Nov 20 15:30:52 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Mon Nov 20 16:59:07 2006 +0000
     1.3 @@ -1326,6 +1326,8 @@ class XendDomainInfo:
     1.4              self._stateSet(DOM_STATE_RUNNING)
     1.5          except RuntimeError, exn:
     1.6              log.exception("XendDomainInfo.initDomain: exception occurred")
     1.7 +            if self.info['bootloader'] and self.image is not None:
     1.8 +                self.image.cleanupBootloading()
     1.9              raise VmError(str(exn))
    1.10  
    1.11