From 6258b39f75821f0a7f93669517a01417ac6a4f77 Mon Sep 17 00:00:00 2001 From: Daniel P. Berrange Date: Sep 07 2007 17:33:50 +0000 Subject: Fixed post-install CDROm source and KVM kernel config --- diff --git a/python-virtinst.spec b/python-virtinst.spec index b439891..68ea84d 100644 --- a/python-virtinst.spec +++ b/python-virtinst.spec @@ -11,7 +11,7 @@ Summary: Python modules for starting Xen guest installations Name: python-%{appname} Version: 0.200.0 -Release: 2%{_extra_release} +Release: 3%{_extra_release} Source0: http://virt-manager.et.redhat.com/download/sources/%{appname}/%{appname}-%{version}.tar.gz License: GPL Group: Development/Libraries @@ -25,6 +25,8 @@ Requires: urlgrabber BuildRequires: python-devel Obsoletes: python-xeninst < 0.97.0 Patch1: %{appname}-%{version}-default-arch.patch +Patch2: %{appname}-%{version}-cdrom-src.patch +Patch3: %{appname}-%{version}-kvm-kernel.patch %description virtinst is a module to help in starting installations of Fedora/Red @@ -39,6 +41,8 @@ virtinst in a command line mode. %prep %setup -q -n %{appname}-%{version} %patch1 -p1 +%patch2 -p1 +%patch3 -p1 %build python setup.py build @@ -67,6 +71,10 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/virt-clone %changelog +* Thu Sep 6 2007 Daniel P. Berrange - 0.200.0-3.fc7 +- Fixed CDROM source post-install (rhbz #260981) +- Fixed kernel for post-install config with KVM guests + * Thu Jul 26 2007 Daniel P. Berrange - 0.200.0-2.fc7 - Fixed default architecture diff --git a/virtinst-0.200.0-cdrom-src.patch b/virtinst-0.200.0-cdrom-src.patch new file mode 100644 index 0000000..aa6b084 --- /dev/null +++ b/virtinst-0.200.0-cdrom-src.patch @@ -0,0 +1,14 @@ +diff -rup virtinst-0.200.0/virtinst/Guest.py virtinst-0.200.0.new/virtinst/Guest.py +--- virtinst-0.200.0/virtinst/Guest.py 2007-07-18 22:04:21.000000000 -0400 ++++ virtinst-0.200.0.new/virtinst/Guest.py 2007-09-06 23:11:54.000000000 -0400 +@@ -151,9 +151,7 @@ class VirtualDisk: + ret += " \n" % { "name": self.driver_name } + else: + ret += " \n" % { "name": self.driver_name, "type": self.driver_type } +- if self.path is None: +- ret += " \n" % { "typeattr": typeattr } +- else: ++ if self.path is not None: + ret += " \n" % { "typeattr": typeattr, "disk": self.path } + ret += " \n" % { "disknode": disknode } + if self.read_only: diff --git a/virtinst-0.200.0-kvm-kernel.patch b/virtinst-0.200.0-kvm-kernel.patch new file mode 100644 index 0000000..f16083c --- /dev/null +++ b/virtinst-0.200.0-kvm-kernel.patch @@ -0,0 +1,18 @@ +changeset: 254:b33e850305be +user: "Daniel P. Berrange " +date: Tue Aug 21 17:46:58 2007 -0400 +summary: Fixed XML generated for kernel/initrd installs of KVM + +diff -r 7220fc5059e4 -r b33e850305be virtinst/DistroManager.py +--- a/virtinst/DistroManager.py Tue Aug 21 17:42:12 2007 -0400 ++++ b/virtinst/DistroManager.py Tue Aug 21 17:46:58 2007 -0400 +@@ -692,7 +692,7 @@ class DistroInstaller(Guest.Installer): + else: + osblob += " %s\n" % type + +- if self.install["kernel"]: ++ if install and self.install["kernel"]: + osblob += " %s\n" % self.install["kernel"] + osblob += " %s\n" % self.install["initrd"] + osblob += " %s\n" % self.install["extraargs"] +