From 8fc3cc586d0d8e9d56641111151ade7e94a2dd1b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 23 Jun 2020 17:02:48 -0400 Subject: [PATCH] Begin work on a genesis for confluent Have a genesis edition for confluent os deploy. While the need for genesis is mitigated and many functions should be available through pre script, provide a more assured environmennt as a fallback, if the OS isn't going to be imported or using something like ESXi. --- genesis/97genesis/cmdline.sh | 15 +++ genesis/97genesis/install-base | 20 +++ genesis/97genesis/install-python | 225 +++++++++++++++++++++++++++++++ genesis/97genesis/installkernel | 6 + 4 files changed, 266 insertions(+) create mode 100644 genesis/97genesis/cmdline.sh create mode 100644 genesis/97genesis/install-base create mode 100644 genesis/97genesis/install-python create mode 100644 genesis/97genesis/installkernel diff --git a/genesis/97genesis/cmdline.sh b/genesis/97genesis/cmdline.sh new file mode 100644 index 00000000..b455dfca --- /dev/null +++ b/genesis/97genesis/cmdline.sh @@ -0,0 +1,15 @@ +root=1 +rootok=1 +netroot=xcat +clear +echo PS1="'"'[genesis running on \H \w]$ '"'" >> ~/.bashrc +echo PS1="'"'[genesis running on \H \w]$ '"'" >> ~/.bash_profile +mkdir -p /etc/ssh +mkdir -p /var/tmp/ +mkdir -p /var/empty/sshd +sed -i '/^root:x/d' /etc/passwd +echo root:x:0:0::/:/bin/bash >> /etc/passwd +echo sshd:x:30:30:SSH User:/var/empty/sshd:/sbin/nologin >> /etc/passwd +/usr/lib/systmed/systemd-udevd --daemon +udevadm trigger +tmux -L console new-sessiod /bin/rungenesis diff --git a/genesis/97genesis/install-base b/genesis/97genesis/install-base new file mode 100644 index 00000000..31f73c3e --- /dev/null +++ b/genesis/97genesis/install-base @@ -0,0 +1,20 @@ +#!/bin/sh +dracut_install curl openssl tar ipmitool cpio gzip lsmod ethtool +dracut_install modprobe touch echo cut wc bash netstat uniq grep ip hostname +dracut_install awk egrep dirname bc expr sort +dracut_install ssh sshd vi reboot lspci parted tmux mkfs mkfs.ext4 mkfs.xfs xfs_db mkswap +dracut_install efibootmgr +dracut_install du df ssh-keygen scp clear dhclient lldpd lldpcli tee +dracut_install /lib64/libnss_dns-2.28.so /lib64/libnss_dns.so.2 +dracut_install ldd uptime /usr/lib64/libnl-3.so.200 +dracut_install poweroff date /etc/nsswitch.conf /etc/services /etc/protocols +dracut_install /usr/share/terminfo/x/xterm /usr/share/terminfo/l/linux /usr/share/terminfo/v/vt100 /usr/share/terminfo/x/xterm-color /usr/share/terminfo/s/screen /usr/share/terminfo/x/xterm-256color /usr/share/terminfo/p/putty-256color /usr/share/terminfo/p/putty /usr/share/terminfo/d/dumb +dracut_install chmod ifconfig whoami route head tail basename /etc/redhat-release ping tr lsusb /usr/share/hwdata/usb.ids +dracut_install dmidecode /usr/lib64/libstdc++.so.6 +dracut_install ps free find +inst /bin/bash /bin/sh +inst_hook cmdline 10 $moddir/cmdline.sh +dracut_install killall chown chroot dd expr kill parted rsync shutdown sort blockdev findfs insmod lvm pivot_root +dracut_install /etc/udev/hwdb.bin +dracut_install /usr/share/hwdata/pci.ids +#dracut_install mstflint This would have mlx update support, but it incurs gigantic dependencies, libicudata diff --git a/genesis/97genesis/install-python b/genesis/97genesis/install-python new file mode 100644 index 00000000..0e9e6252 --- /dev/null +++ b/genesis/97genesis/install-python @@ -0,0 +1,225 @@ +#!/bin/sh +#strace /usr/libexec/platform-python -c 'import hashlib; import socket; import argparse; import socket; import os; import http.client; import http.cookies; import subprocess; import base64; import ctypes; import struct; import urllib.parse; import shlex; import configparser' +dracut_install /usr/libexec/platform-python +dracut_install /etc/localtime +dracut_install /lib64/libffi.so.6 +dracut_install /lib64/libssl.so.1.1 +dracut_install /usr/lib64/python3.6/os.py +dracut_install /usr/lib64/gconv/gconv-modules.cache +dracut_install /usr/lib64/python3.6 +dracut_install /usr/lib64/python3.6/collections +dracut_install /usr/lib64/python3.6/collections/__pycache__/abc.cpython-36.pyc +dracut_install /usr/lib64/python3.6/collections/__pycache__/__init__.cpython-36.pyc +dracut_install /usr/lib64/python3.6/ctypes +dracut_install /usr/lib64/python3.6/ctypes/__pycache__/_endian.cpython-36.pyc +dracut_install /usr/lib64/python3.6/ctypes/__pycache__/__init__.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email +dracut_install /usr/lib64/python3.6/email/__pycache__/base64mime.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/charset.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/_encoded_words.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/encoders.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/errors.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/feedparser.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/header.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/__init__.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/iterators.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/message.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/_parseaddr.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/parser.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/_policybase.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/quoprimime.cpython-36.pyc +dracut_install /usr/lib64/python3.6/email/__pycache__/utils.cpython-36.pyc +dracut_install /usr/lib64/python3.6/encodings +dracut_install /usr/lib64/python3.6/encodings/__pycache__/aliases.cpython-36.pyc +dracut_install /usr/lib64/python3.6/encodings/__pycache__/__init__.cpython-36.pyc +dracut_install /usr/lib64/python3.6/encodings/__pycache__/latin_1.cpython-36.pyc +dracut_install /usr/lib64/python3.6/encodings/__pycache__/utf_8.cpython-36.pyc +dracut_install /usr/lib64/python3.6/http +dracut_install /usr/lib64/python3.6/http/__pycache__/client.cpython-36.pyc +dracut_install /usr/lib64/python3.6/http/__pycache__/cookies.cpython-36.pyc +dracut_install /usr/lib64/python3.6/http/__pycache__/__init__.cpython-36.pyc +dracut_install /usr/lib64/python3.6/lib-dynload +dracut_install /usr/lib64/python3.6/lib-dynload/binascii.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/_bisect.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/_blake2.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/_datetime.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/_hashlib.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/_heapq.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/math.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/_posixsubprocess.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/_random.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/select.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/_sha3.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/_socket.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/_ssl.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/lib-dynload/_struct.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/__pycache__/abc.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/argparse.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/base64.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/bisect.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/_bootlocale.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/calendar.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/codecs.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/_collections_abc.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/configparser.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/copy.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/copyreg.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/datetime.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/enum.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/functools.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/genericpath.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/gettext.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/hashlib.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/heapq.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/io.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/ipaddress.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/keyword.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/linecache.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/locale.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/operator.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/os.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/posixpath.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/quopri.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/random.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/re.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/reprlib.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/selectors.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/shlex.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/signal.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/_sitebuiltins.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/site.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/socket.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/sre_compile.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/sre_constants.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/sre_parse.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/ssl.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/stat.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/string.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/struct.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/subprocess.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/sysconfig.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/textwrap.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/threading.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/token.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/tokenize.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/traceback.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/types.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/uu.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/warnings.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/weakref.cpython-36.pyc +dracut_install /usr/lib64/python3.6/__pycache__/_weakrefset.cpython-36.pyc +dracut_install /usr/lib64/python3.6/site-packages +dracut_install /usr/lib64/python3.6/urllib +dracut_install /usr/lib64/python3.6/urllib/__pycache__/__init__.cpython-36.pyc +dracut_install /usr/lib64/python3.6/urllib/__pycache__/parse.cpython-36.pyc +dracut_install /usr/lib/locale/en_US.utf8/LC_ADDRESS +dracut_install /usr/lib/locale/en_US.utf8/LC_COLLATE +dracut_install /usr/lib/locale/en_US.utf8/LC_CTYPE +dracut_install /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION +dracut_install /usr/lib/locale/en_US.utf8/LC_MEASUREMENT +dracut_install /usr/lib/locale/en_US.utf8/LC_MESSAGES +dracut_install /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES +dracut_install /usr/lib/locale/en_US.utf8/LC_MONETARY +dracut_install /usr/lib/locale/en_US.utf8/LC_NAME +dracut_install /usr/lib/locale/en_US.utf8/LC_NUMERIC +dracut_install /usr/lib/locale/en_US.utf8/LC_PAPER +dracut_install /usr/lib/locale/en_US.utf8/LC_TELEPHONE +dracut_install /usr/lib/locale/en_US.utf8/LC_TIME +dracut_install /usr/lib/python3.6/site-packages +dracut_install /usr/lib64/python3.6/codecs.py +dracut_install /usr/lib64/python3.6/encodings/aliases.py +dracut_install /usr/lib64/python3.6/encodings/utf_8.py +dracut_install /usr/lib64/python3.6/encodings/latin_1.py +dracut_install /usr/lib64/python3.6/io.py +dracut_install /usr/lib64/python3.6/abc.py +dracut_install /usr/lib64/python3.6/_weakrefset.py +dracut_install /usr/lib64/python3.6/weakref.py +dracut_install /usr/lib64/python3.6/site.py +dracut_install /usr/lib64/python3.6/stat.py +dracut_install /usr/lib64/python3.6/posixpath.py +dracut_install /usr/lib64/python3.6/genericpath.py +dracut_install /usr/lib64/python3.6/_collections_abc.py +dracut_install /usr/lib64/python3.6/_sitebuiltins.py +dracut_install /usr/lib64/python3.6/sysconfig.py +dracut_install /usr/lib64/python3.6/_sysconfigdata_m_linux_x86_64-linux-gnu.py +dracut_install /usr/lib64/python3.6/encodings/__init__.py +dracut_install /usr/lib64/python3.6/socket.py +dracut_install /usr/lib64/python3.6/selectors.py +dracut_install /usr/share/locale/locale.alias +dracut_install /usr/lib64/python3.6/collections/__init__.py +dracut_install /usr/lib64/python3.6/operator.py +dracut_install /usr/lib64/python3.6/keyword.py +dracut_install /usr/lib64/python3.6/heapq.py +dracut_install /usr/lib64/python3.6/reprlib.py +dracut_install /usr/lib64/python3.6/enum.py +dracut_install /usr/lib64/python3.6/types.py +dracut_install /usr/lib64/python3.6/functools.py +dracut_install /usr/lib64/python3.6/collections/abc.py +dracut_install /usr/lib64/python3.6/http/client.py +dracut_install /usr/lib64/python3.6/email/parser.py +dracut_install /usr/lib64/python3.6/email/feedparser.py +dracut_install /usr/lib64/python3.6/re.py +dracut_install /usr/lib64/python3.6/sre_compile.py +dracut_install /usr/lib64/python3.6/sre_parse.py +dracut_install /usr/lib64/python3.6/sre_constants.py +dracut_install /usr/lib64/python3.6/copyreg.py +dracut_install /usr/lib64/python3.6/email/errors.py +dracut_install /usr/lib64/python3.6/email/_policybase.py +dracut_install /usr/lib64/python3.6/email/header.py +dracut_install /usr/lib64/python3.6/email/quoprimime.py +dracut_install /usr/lib64/python3.6/string.py +dracut_install /usr/lib64/python3.6/email/base64mime.py +dracut_install /usr/lib64/python3.6/base64.py +dracut_install /usr/lib64/python3.6/struct.py +dracut_install /usr/lib64/python3.6/email/charset.py +dracut_install /usr/lib64/python3.6/email/encoders.py +dracut_install /usr/lib64/python3.6/quopri.py +dracut_install /usr/lib64/python3.6/email/utils.py +dracut_install /usr/lib64/python3.6/random.py +dracut_install /usr/lib64/python3.6/warnings.py +dracut_install /usr/lib64/python3.6/hashlib.py +dracut_install /usr/lib64/python3.6/bisect.py +dracut_install /usr/lib64/python3.6/datetime.py +dracut_install /usr/lib64/python3.6/urllib/parse.py +dracut_install /usr/lib64/python3.6/email/_parseaddr.py +dracut_install /usr/lib64/python3.6/calendar.py +dracut_install /usr/lib64/python3.6/locale.py +dracut_install /usr/lib64/python3.6/email/message.py +dracut_install /usr/lib64/python3.6/uu.py +dracut_install /usr/lib64/python3.6/email/_encoded_words.py +dracut_install /usr/lib64/python3.6/email/iterators.py +dracut_install /usr/lib64/python3.6/http/__init__.py +dracut_install /usr/lib64/python3.6/http/cookies.py +dracut_install /usr/lib64/python3.6/argparse.py +dracut_install /usr/lib64/python3.6/copy.py +dracut_install /usr/lib64/python3.6/textwrap.py +dracut_install /usr/lib64/python3.6/gettext.py +dracut_install /usr/lib64/python3.6/subprocess.py +dracut_install /usr/lib64/python3.6/signal.py +dracut_install /usr/lib64/python3.6/threading.py +dracut_install /usr/lib64/python3.6/traceback.py +dracut_install /usr/lib64/python3.6/dummy_threading.py +dracut_install /usr/lib64/python3.6/_dummy_thread.py +dracut_install /usr/lib64/python3.6/linecache.py +dracut_install /usr/lib64/python3.6/tokenize.py +dracut_install /usr/lib64/python3.6/token.py +dracut_install /usr/lib64/python3.6/shlex.py +dracut_install /usr/lib64/python3.6/configparser.py +dracut_install /usr/lib64/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so +dracut_install /usr/lib64/python3.6/ctypes/__init__.py +dracut_install /usr/lib64/python3.6/ctypes/_endian.py +dracut_install /usr/lib64/python3.6/ctypes/util.py +dracut_install /usr/lib/locale/en_US.utf8/LC_ADDRESS +dracut_install /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION +dracut_install /usr/lib/locale/en_US.utf8/LC_MEASUREMENT +dracut_install /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES +dracut_install /usr/lib/locale/en_US.utf8/LC_MONETARY +dracut_install /usr/lib/locale/en_US.utf8/LC_TELEPHONE +dracut_install /usr/lib/locale/en_US.utf8/LC_TIME +dracut_install /usr/lib/locale/en_US.utf8/LC_COLLATE +dracut_install /usr/lib/locale/en_US.utf8/LC_CTYPE +dracut_install /usr/lib/locale/en_US.utf8/LC_NAME +dracut_install /usr/lib/locale/en_US.utf8/LC_NUMERIC +dracut_install /usr/lib/locale/en_US.utf8/LC_PAPER diff --git a/genesis/97genesis/installkernel b/genesis/97genesis/installkernel new file mode 100644 index 00000000..fef3de5b --- /dev/null +++ b/genesis/97genesis/installkernel @@ -0,0 +1,6 @@ +#!/bin/sh +instmods e1000 e1000e igb sfc mlx5_en mlx4_en cxgb3 cxgb4 tg3 bnx2 bnx2x bna ixgb ixgbe qlge mptsas mpt2sas mpt3sas megaraid_sas ahci xhci-hcd sd_mod pmcraid be2net vfat ext3 ext4 usb_storage scsi_wait_scan ipmi_si ipmi_devintf qlcnic xfs +instmods cdc_ether +instmods mptctl +instmods mlx4_ib mlx5_ub ib_umad ib_ipoib +instmods i40e hfi1 bnxt_en qed qede