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