2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-21 17:11:58 +00:00

Begin work to package diskless support

First will work on the 'addons' portion of the needed
work.
This commit is contained in:
Jarrod Johnson 2021-06-03 17:17:42 -04:00
parent e0c59cc341
commit 1a30876a2d
3 changed files with 22 additions and 1 deletions

View File

@ -21,9 +21,11 @@ This contains support utilities for enabling deployment of x86_64 architecture s
%build
mkdir -p opt/confluent/bin
mkdir -p stateless-bin
cd utils
make all
cp copernicus clortho autocons ../opt/confluent/bin
cp start_root urlmount ../stateless/
cd ..
for os in rhvh4 el7 genesis el8 suse15 ubuntu20.04 coreos; do
mkdir ${os}out
@ -35,6 +37,17 @@ for os in rhvh4 el7 genesis el8 suse15 ubuntu20.04 coreos; do
mv ../addons.cpio .
cd ..
done
for stateless in el8; do
mkdir ${os}disklessout
cd ${os}disklessout
cp -a ../opt .
cp -a ../${os}/initramfs/* .
cp -a ../common/* .
cp -a ../stateless-bin/* opt/confluent/bin
find . | cpio -H newc -o > ../addons.cpio
mv ../addons.cpio .
cd ..
done
mkdir esxi7out
cd esxi7out
cp -a ../opt .
@ -52,6 +65,10 @@ for os in rhvh4 el7 el8 genesis suse15 ubuntu20.04 esxi6 esxi7 coreos; do
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/$os/initramfs
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
cp ${os}disklessout/addons.* %{buildroot}/opt/confluent/lib/osdeploy/${os}-diskless/initramfs
fi
cp -a $os/profiles/* %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles
find %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles -name .gitignore -exec rm -f {} +
done

View File

@ -2,7 +2,11 @@ CC := gcc
CFLAGS := -Os
TARGETS := copernicus autocons start_root
all: $(TARGETS) clortho
all: $(TARGETS) clortho urlmount
urlmount: urlmount.c
$(CC) $(CFLAGS) -o $@ $^ -D_FILE_OFFSET_BITS=64 -lcurl -lm -lfuse -lpthread
strip -s $@
clortho: clortho.c
$(CC) $(CFLAGS) -o $@ $^ -lcrypt