rpms/python-virtinst/devel python-virtinst-0.300.0-transient-qemu.patch, NONE, 1.1 python-virtinst.spec, 1.25, 1.26

Daniel P. Berrange (berrange) fedora-extras-commits at redhat.com
Wed Sep 19 19:22:35 UTC 2007


Author: berrange

Update of /cvs/pkgs/rpms/python-virtinst/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1298

Modified Files:
	python-virtinst.spec 
Added Files:
	python-virtinst-0.300.0-transient-qemu.patch 
Log Message:
Fix post-install CDROM config

python-virtinst-0.300.0-transient-qemu.patch:

--- NEW FILE python-virtinst-0.300.0-transient-qemu.patch ---
diff -rup virtinst-0.300.0.orig/virtinst/FullVirtGuest.py virtinst-0.300.0.new/virtinst/FullVirtGuest.py
--- virtinst-0.300.0.orig/virtinst/FullVirtGuest.py	2007-09-19 15:19:16.000000000 -0400
+++ virtinst-0.300.0.new/virtinst/FullVirtGuest.py	2007-09-19 15:19:28.000000000 -0400
@@ -273,10 +273,13 @@ class FullVirtGuest(Guest.XenGuest):
         for d in self.disks:
             saved_path = None
             if d.device == Guest.VirtualDisk.DEVICE_CDROM and d.transient and not install:
-                # XXX hack. libvirt can't currently handle QEMU having an empty disk path
+                # XXX hack. libvirt can't currently handle QEMU having an empty disk path..
                 if self.type == "xen":
                     saved_path = d.path
                     d.path = None
+                else:
+                    # .. so simply remove CDROM device completely in non-Xen
+                    continue
 
             ret += d.get_xml_config(d.target)
             if saved_path != None:


Index: python-virtinst.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-virtinst/devel/python-virtinst.spec,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- python-virtinst.spec	12 Sep 2007 03:47:19 -0000	1.25
+++ python-virtinst.spec	19 Sep 2007 19:22:03 -0000	1.26
@@ -11,10 +11,11 @@
 Summary: Python modules for starting Xen guest installations
 Name: python-%{appname}
 Version: 0.300.0
-Release: 3%{_extra_release}
+Release: 4%{_extra_release}
 Source0: http://virt-manager.org/download/sources/%{appname}/%{appname}-%{version}.tar.gz
 Patch1: %{name}-%{version}-fedora8-distro.patch
 Patch2: %{name}-0.200.0-default-arch.patch
+Patch3: %{name}-%{version}-transient-qemu.patch
 License: GPL
 Group: Development/Libraries
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -39,6 +40,7 @@
 %setup -q -n %{appname}-%{version}
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 python setup.py build
@@ -68,6 +70,9 @@
 %{_bindir}/virt-image
 
 %changelog
+* Wed Sep 19 2007 Daniel P. Berrange <berrange at redhat.com> - 0.300.0-4.fc8
+- Fix post install CDROM config for KVM guests
+
 * Tue Sep 11 2007 Daniel P. Berrange <berrange at redhat.com> - 0.300.0-3.fc8
 - Fixed default architecture. Again.
 




More information about the fedora-extras-commits mailing list