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

[Ovirt-devel] [PATCH]: Allow the WUI to manage the hardware it is running on



    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>

diff --git a/ovirt-host-creator/ovirt-host-image.spec b/ovirt-host-creator/ovirt-host-image.spec
index 0475cab..94c169e 100644
--- a/ovirt-host-creator/ovirt-host-image.spec
+++ b/ovirt-host-creator/ovirt-host-image.spec
@@ -24,7 +24,6 @@ At the moment, this RPM just packages prebuilt ISO.
 %package pxe
 Summary: oVirt Managed Node boot PXE image
 Group: Applications/System
-BuildRequires: livecd-tools >= 017
 
 %description pxe
 The PXE boot image for oVirt Managed Node network boot from oVirt Admin Node.
@@ -55,6 +54,9 @@ mkdir %{buildroot}
 %clean
 %{__rm} -rf %{buildroot}
 
+%post pxe
+[ -x /usr/bin/cobbler ] && /usr/bin/cobbler sync
+
 %files
 %defattr(-,root,root,0644)
 %{app_root}/ovirt.iso


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