BootStrap: yum
OSVersion: 8
MirrorURL: http://dl.rockylinux.org/pub/rocky/%{OSVERSION}/BaseOS/x86_64/os/
Include: dnf


%post

    sed -i 's/^root:.:/root::/g' /etc/passwd

    dnf install -y basesystem bash chkconfig coreutils e2fsprogs \
    ethtool filesystem findutils gawk grep initscripts iproute \
    iputils net-tools nfs-utils pam psmisc rsync sed setup \
    shadow-utils rsyslog tzdata util-linux words zlib tar less \
    gzip which util-linux openssh-clients openssh-server dhclient \
    pciutils vim-minimal shadow-utils strace cronie crontabs cpio \
    wget rocky-release ipmitool yum network-scripts

    systemctl enable network

    touch /etc/sysconfig/disable-deprecation-warnings