BootStrap: docker
From: centos:8

%post
dnf install -y --allowerasing coreutils \
    cpio \
    dhclient \
    e2fsprogs \
    ethtool \
    findutils \
    initscripts \
    ipmitool \
    iproute \
    kernel-core \
    net-tools \
    network-scripts \
    nfs-utils \
    openssh-clients \
    openssh-server \
    pciutils \
    psmisc \
    rsync \
    rsyslog \
    strace \
    wget \
    which \
    words

# These changes make it possible for users to ssh into nodes even
# if there is no shadow entry for the user
sed -i -e '/^account.*pam_unix\.so\s*$/s/\s*$/\ broken_shadow/' /etc/pam.d/system-auth
sed -i -e '/^account.*pam_unix\.so\s*$/s/\s*$/\ broken_shadow/' /etc/pam.d/password-auth

systemctl unmask console-getty.service dev-hugepages.mount \
    getty.target sys-fs-fuse-connections.mount systemd-logind.service \
    systemd-remount-fs.service

systemctl enable network

touch /etc/sysconfig/disable-deprecation-warnings