From: Cole Robinson Date: Wed, 23 Jun 2010 11:34:16 -0400 Subject: [PATCH] virt-install: Fix CDROM attach for windows installs We were unintentionally dropping the CDROM device for the 2nd stage of the install. Origin: upstream, http://hg.fedorahosted.org/hg/python-virtinst/rev/e5ab15cd4c24 --- virtinst/Guest.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/virtinst/Guest.py b/virtinst/Guest.py index c6a19c9..f6bceea 100644 --- a/virtinst/Guest.py +++ b/virtinst/Guest.py @@ -758,6 +758,10 @@ class Guest(object): ############################ def _prepare_install(self, meter): + # Empty install dev list + # Warning: moving this to cleanup_install breaks continue_install + self._install_devices = [] + # Initialize install device list self._install_devices = self.get_all_devices()[:] @@ -774,9 +778,6 @@ class Guest(object): self._set_defaults(self._get_install_devs) def _cleanup_install(self): - # Empty install dev list - self._install_devices = [] - self._installer.cleanup() def _create_devices(self, progresscb): --