[tlviewer@c7gui:~]$ cat this-dnfbootstrap sudo lvcreate -L 10G -n al8min maxvm sudo mkfs.ext4 -O^64bit -O^metadata_csum /dev/maxvm/al8min sudo mount /dev/maxvm/al8min /mnt/usb // must be done first if gpgcheck=1 in /etc/dnf/dnf.conf // Init rpmdb, if your host has mock, then this path below is good sudo rpm --root=/mnt/usb --import /usr/share/distribution-gpg-keys/alma/RPM-GPG-KEY-AlmaLinux // proxy is picked up from ENV, export PROXY=http://192.168.1.3:3128 sudo dnf --installroot=/mnt/usb install dnf rpm nano dnf-plugins-core glibc-langpack-en --release=8 --nodocs --setopt=module_platform_id=platform:el8 \ --repofrompath=mga8rel,https://repo.almalinux.org/almalinux/8/BaseOS/x86_64/os/ --disablerepo=* --enablerepo=mga8rel \ --exclude=gnome*,geo* cd /mnt/usb //enter the chroot and set the resolv.conf cd /etc ln -s ../run/systemd/resolve/stub-resolv.conf resolv.conf dnf install epel-release elrepo-release passwd zstd lz4 // --nogpgcheck sudo tar -Ipzstd -cf //al8min.tar.zst ./