diff --git a/confluent_osdeploy/buildrpm b/confluent_osdeploy/buildrpm index a62127d6..83b86251 100755 --- a/confluent_osdeploy/buildrpm +++ b/confluent_osdeploy/buildrpm @@ -17,7 +17,17 @@ mv confluent_imginfo copernicus clortho autocons ../el9bin/opt/confluent/bin mv start_root urlmount ../el9bin/stateless-bin/ make clean cd .. +mkdir -p el8bin/opt/confluent/bin +mkdir -p el8bin/stateless-bin +podman run --privileged --rm -v $(pwd)/utils:/buildutils -i -t el8build make -C /buildutils +cd utils +mv confluent_imginfo copernicus clortho autocons ../el8bin/opt/confluent/bin +mv start_root urlmount ../el8bin/stateless-bin/ +make clean +cd .. tar Jcvf confluent_el9bin.tar.xz el9bin/ -mv confluent_el9bin.tar.xz ~/rpmbuild/SOURCES/ +tar Jcvf confluent_el8bin.tar.xz el8bin/ +mv confluent_el8bin.tar.xz ~/rpmbuild/SOURCES/ rm -rf el9bin +rm -rf el8bin rpmbuild -ba confluent_osdeploy.spec diff --git a/confluent_osdeploy/confluent_osdeploy.spec.tmpl b/confluent_osdeploy/confluent_osdeploy.spec.tmpl index e3607c0f..7b1bc74f 100644 --- a/confluent_osdeploy/confluent_osdeploy.spec.tmpl +++ b/confluent_osdeploy/confluent_osdeploy.spec.tmpl @@ -7,6 +7,7 @@ License: Apache2 URL: https://hpc.lenovo.com/ Source0: confluent_osdeploy.tar.xz Source1: confluent_el9bin.tar.xz +Source2: confluent_el8bin.tar.xz BuildArch: noarch Requires: confluent_ipxe mtools tar BuildRoot: /tmp @@ -18,16 +19,14 @@ This contains support utilities for enabling deployment of x86_64 architecture s %define debug_package %{nil} %prep -%setup -n confluent_osdeploy -a 1 +%setup -n confluent_osdeploy -a 2 -a 1 %build -mkdir -p opt/confluent/bin -mkdir -p stateless-bin -cd utils -make all -cp confluent_imginfo copernicus clortho autocons ../opt/confluent/bin -cp start_root urlmount ../stateless-bin/ -cd .. +#cd utils +#make all +#cp confluent_imginfo copernicus clortho autocons ../opt/confluent/bin +#cp start_root urlmount ../stateless-bin/ +#cd .. ln -s el8 el9 for os in rhvh4 el7 genesis el8 suse15 ubuntu20.04 ubuntu22.04 coreos el9; do mkdir ${os}out @@ -35,7 +34,7 @@ for os in rhvh4 el7 genesis el8 suse15 ubuntu20.04 ubuntu22.04 coreos el9; do if [ -d ../${os}bin ]; then cp -a ../${os}bin/opt . else - cp -a ../opt . + cp -a ../el8bin/opt . fi cp -a ../${os}/initramfs/* . cp -a ../common/initramfs/* . @@ -49,14 +48,14 @@ for os in el7 el8 suse15 el9 ubuntu20.04; do if [ -d ../${os}bin ]; then cp -a ../${os}bin/opt . else - cp -a ../opt . + cp -a ../el8bin/opt . fi cp -a ../${os}-diskless/initramfs/* . cp -a ../common/initramfs/* . if [ -d ../${os}bin ]; then cp -a ../${os}bin/stateless-bin/* opt/confluent/bin else - cp -a ../stateless-bin/* opt/confluent/bin + cp -a ../el8bin/stateless-bin/* opt/confluent/bin fi find . | cpio -H newc -o > ../addons.cpio mv ../addons.cpio .