From 65797abfbbe31a588afe9a1009e3edf7dd8cf119 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 4 May 2020 13:49:48 -0400 Subject: [PATCH] Move ubuntu into the deploy directory Also get started on a spec file --- confluent_deploy/confluent_deploy.spec | 48 +++++++++++++++++++ .../ubuntu20.04}/autoinstall/meta-data | 0 .../ubuntu20.04}/autoinstall/user-data | 0 .../initramfs}/conf/conf.d/confluent | 0 .../custom-installation/firstboot.sh | 0 .../hooks/casper-bottom.sh | 0 .../initramfs}/custom-installation/post.sh | 0 .../initramfs}/custom-installation/pre.sh | 0 .../scripts/init-premount/confluent | 0 9 files changed, 48 insertions(+) create mode 100644 confluent_deploy/confluent_deploy.spec rename {misc/ubuntu20.04deploy => confluent_deploy/ubuntu20.04}/autoinstall/meta-data (100%) rename {misc/ubuntu20.04deploy => confluent_deploy/ubuntu20.04}/autoinstall/user-data (100%) rename {misc/ubuntu20.04deploy => confluent_deploy/ubuntu20.04/initramfs}/conf/conf.d/confluent (100%) rename {misc/ubuntu20.04deploy => confluent_deploy/ubuntu20.04/initramfs}/custom-installation/firstboot.sh (100%) rename {misc/ubuntu20.04deploy => confluent_deploy/ubuntu20.04/initramfs}/custom-installation/hooks/casper-bottom.sh (100%) rename {misc/ubuntu20.04deploy => confluent_deploy/ubuntu20.04/initramfs}/custom-installation/post.sh (100%) rename {misc/ubuntu20.04deploy => confluent_deploy/ubuntu20.04/initramfs}/custom-installation/pre.sh (100%) rename {misc/ubuntu20.04deploy => confluent_deploy/ubuntu20.04/initramfs}/scripts/init-premount/confluent (100%) diff --git a/confluent_deploy/confluent_deploy.spec b/confluent_deploy/confluent_deploy.spec new file mode 100644 index 00000000..d4de71f0 --- /dev/null +++ b/confluent_deploy/confluent_deploy.spec @@ -0,0 +1,48 @@ +Name: confluent_deploy-x86_64 +Version: 3.0 +Release 1%{?dist} +Summary: OS Deployment support for confluent + +License: Apache2 +URL: http://hpc.lenovo.com/ +Source0: confluent-deploy.tar.xz +BulidArch: noarch +Requires: confluent_ipxe +BuildRoot: /tmp + +%description +This contains support utilities for enabling deployment of x86_64 architecture systems + + +%define debug_package %{nil} + +%prep +%setup + +%build +mkdir -p opt/confluent/bin +cd utils +make all +cp copernicus clortho autocons ../opt/confluent/bin +cd .. +mkdir el8out suse15out ubuntu20.04out +cd el8out +cp -a ../opt . +mkdir -p usr/lib/dracut/hooks/ +cp -a ../el8/dracut-hooks/* usr/lib/dracut/hooks/ +find . | cpio -H newc > addons.cpio +cd ../suse15out +cp -a ../opt . +cp -a ../suse15/opt ../suse15/etc . +find . | cpio -H newc > addons.cpio +cd ../ubuntu20.04out +cp -a ../opt . +cp -a ../ubuntu20.04/initramfs/* . +find . | cpio -H newc > addons.cpio + +%install +pwd +ls + + + diff --git a/misc/ubuntu20.04deploy/autoinstall/meta-data b/confluent_deploy/ubuntu20.04/autoinstall/meta-data similarity index 100% rename from misc/ubuntu20.04deploy/autoinstall/meta-data rename to confluent_deploy/ubuntu20.04/autoinstall/meta-data diff --git a/misc/ubuntu20.04deploy/autoinstall/user-data b/confluent_deploy/ubuntu20.04/autoinstall/user-data similarity index 100% rename from misc/ubuntu20.04deploy/autoinstall/user-data rename to confluent_deploy/ubuntu20.04/autoinstall/user-data diff --git a/misc/ubuntu20.04deploy/conf/conf.d/confluent b/confluent_deploy/ubuntu20.04/initramfs/conf/conf.d/confluent similarity index 100% rename from misc/ubuntu20.04deploy/conf/conf.d/confluent rename to confluent_deploy/ubuntu20.04/initramfs/conf/conf.d/confluent diff --git a/misc/ubuntu20.04deploy/custom-installation/firstboot.sh b/confluent_deploy/ubuntu20.04/initramfs/custom-installation/firstboot.sh similarity index 100% rename from misc/ubuntu20.04deploy/custom-installation/firstboot.sh rename to confluent_deploy/ubuntu20.04/initramfs/custom-installation/firstboot.sh diff --git a/misc/ubuntu20.04deploy/custom-installation/hooks/casper-bottom.sh b/confluent_deploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh similarity index 100% rename from misc/ubuntu20.04deploy/custom-installation/hooks/casper-bottom.sh rename to confluent_deploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh diff --git a/misc/ubuntu20.04deploy/custom-installation/post.sh b/confluent_deploy/ubuntu20.04/initramfs/custom-installation/post.sh similarity index 100% rename from misc/ubuntu20.04deploy/custom-installation/post.sh rename to confluent_deploy/ubuntu20.04/initramfs/custom-installation/post.sh diff --git a/misc/ubuntu20.04deploy/custom-installation/pre.sh b/confluent_deploy/ubuntu20.04/initramfs/custom-installation/pre.sh similarity index 100% rename from misc/ubuntu20.04deploy/custom-installation/pre.sh rename to confluent_deploy/ubuntu20.04/initramfs/custom-installation/pre.sh diff --git a/misc/ubuntu20.04deploy/scripts/init-premount/confluent b/confluent_deploy/ubuntu20.04/initramfs/scripts/init-premount/confluent similarity index 100% rename from misc/ubuntu20.04deploy/scripts/init-premount/confluent rename to confluent_deploy/ubuntu20.04/initramfs/scripts/init-premount/confluent