[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



From: Chris Lalancette <clalance 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 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]