[Ovirt-devel] [PATCH ovirt-node-image] fix ovirt-node-image.spec

Alan Pevec apevec at redhat.com
Tue Sep 9 00:22:09 UTC 2008


From: Chris Lalancette <clalance at redhat.com>

    1) Removed a redundant BuildRequires line.
    2) More importantly, added a %post script for the pxe RPM to run cobbler
    sync iff cobbler exists.  With this in place, running "rpm -Uvh" with a new
    ovirt-managed-node-pxe RPM will actually cause managed nodes to pick up the
    new image instead of the old one.

    Signed-off-by: Chris Lalancette <clalance at redhat.com>
---
 ovirt-node-image.spec |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ovirt-node-image.spec b/ovirt-node-image.spec
index 9e47e54..ebe674d 100644
--- a/ovirt-node-image.spec
+++ b/ovirt-node-image.spec
@@ -28,7 +28,6 @@ At the moment, this RPM just packages prebuilt ISO.
 %package pxe
 Summary: oVirt Node boot PXE image
 Group: Applications/System
-BuildRequires: livecd-tools >= 017
 
 %description pxe
 The PXE boot image for oVirt Node network boot from oVirt Server.
@@ -82,6 +81,9 @@ mkdir %{buildroot}
 %clean
 %{__rm} -rf %{buildroot}
 
+%post pxe
+[ -x /usr/bin/cobbler ] && /usr/bin/cobbler sync
+
 %files
 %defattr(-,root,root,0644)
 %{app_root}/%{name}.iso
-- 
1.5.5.1




More information about the ovirt-devel mailing list