[Ovirt-devel] [PATCH node-image] minimal ovirt-node-image-pxe subpackage

Alan Pevec apevec at redhat.com
Sun Nov 30 10:23:01 UTC 2008


contains only %post script which installs the PXE image in Cobbler,
using the ISO from the main ovirt-node-image package
---
 ovirt-node-image.spec.in |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/ovirt-node-image.spec.in b/ovirt-node-image.spec.in
index 009a499..eab9cee 100644
--- a/ovirt-node-image.spec.in
+++ b/ovirt-node-image.spec.in
@@ -29,6 +29,14 @@ Requires: appliance-tools >= 003.9
 The ISO boot image for oVirt Node booting from CDROM device.
 At the moment, this RPM just packages prebuilt ISO.
 
+%package pxe
+Summary: oVirt Node PXE image
+Group: Applications/System
+Requires: %{name} = %{version}-%{release}
+
+%description pxe
+PXE boot image installer for oVirt Node network boot from oVirt Server.
+
 %prep
 %setup -q
 %if ! %{source_iso}
@@ -60,6 +68,12 @@ mkdir %{buildroot}
 %clean
 %{__rm} -rf %{buildroot}
 
+%post pxe
+cd %{app_root}
+rm -rf tftpboot
+ovirt-pxe %{name}.iso > /dev/null
+cobbler sync > /dev/null 2>&1 || :
+
 %files
 %defattr(-,root,root,0644)
 %{app_root}/%{name}.iso
@@ -71,6 +85,9 @@ mkdir %{buildroot}
 %{_sbindir}/edit-livecd
 %{_sbindir}/livecd-setauth
 
+%files pxe
+%defattr(0644,root,root,0755)
+
 %changelog
 * Thu Jul 03 2008 Perry Myers <pmyers at redhat.com> 0.92-0
 - Only store ISO in SRPM, and generate PXE from that during build
-- 
1.5.6.5




More information about the ovirt-devel mailing list