mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Cleanup after the bootloader even if the domain building fails.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
e02da28f52
commit
a9df6cf30f
1 file changed
+2
@@ -1326,6 +1326,8 @@ class XendDomainInfo:
|
||||
self._stateSet(DOM_STATE_RUNNING)
|
||||
except RuntimeError, exn:
|
||||
log.exception("XendDomainInfo.initDomain: exception occurred")
|
||||
if self.info['bootloader'] and self.image is not None:
|
||||
self.image.cleanupBootloading()
|
||||
raise VmError(str(exn))
|
||||
|
||||
|
||||
|
||||