Works fine now without this hack.
# enable manpages
sudo sed -i s/nodocs// /etc/dnf/dnf.conf
-# hack for flatpak-builder
-sudo mkdir -p /usr/lib/rpm/macros.d
-echo "%_netsharedpath /dev:/media:/mnt:/proc:/sys:/tmp:/var/lib/flatpak:/var/lib/libvirt" | sudo tee /usr/lib/rpm/macros.d/macros.toolbox
-
sudo dnf install -y ansible man-pages moreutils \
python3-boto python3-boto3 libnotify \
pandoc texlive-ec texlive-pdfjam texlive-beamer \