2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Actually fix up the osdeploy build

For now, stub out the diskless profile dir, which doesn't quite
exist yet.
This commit is contained in:
Jarrod Johnson 2021-06-04 17:45:52 -04:00
parent 14bc4df92e
commit fa3220f3d1

View File

@ -41,7 +41,8 @@ for os in el8; do
mkdir ${os}disklessout
cd ${os}disklessout
cp -a ../opt .
cp -a ../${os}-diskless/initramfs/* .
#TODO: actually have el8 stateless content
#cp -a ../${os}-diskless/initramfs/* .
cp -a ../common/* .
cp -a ../stateless-bin/* opt/confluent/bin
find . | cpio -H newc -o > ../addons.cpio
@ -66,7 +67,7 @@ for os in rhvh4 el7 el8 genesis suse15 ubuntu20.04 esxi6 esxi7 coreos; do
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles
cp ${os}out/addons.* %{buildroot}/opt/confluent/lib/osdeploy/$os/initramfs
if [ -d ${os}disklessout ]; then
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/${os}diskless/initramfs
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/${os}-diskless/initramfs
cp ${os}disklessout/addons.* %{buildroot}/opt/confluent/lib/osdeploy/${os}-diskless/initramfs
fi
cp -a $os/profiles/* %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles