dnf has issues with --enablerepo AND --installroot. Behaviour yum: yum install --enablerepo=myrepo.repo \ --installroot=/chrootdir yum searches for the name repo.repo in /chrootdir/etc/var/yum.reops.d which is the correct behaviour because the myrepo.repo is a temporarely created file that should be valid just for the chrootdir. it is created automatically and then after its process finished remove again. dnf install --enablerepo=myrepo.repo \ --installroot=/chrootdir searches in /etc/yum.repos.d for that file. though all operations should be done in /chrootdir and the host should not be touched at all. yum behaves correctly while dnf does not. NOTE: please take my apologizes here but i'm just a small step away from becoming totally pissed off because the transition from yum to dnf (valued from the amount of work and changes we have been through so far) is a total PITA. i am also a small step away from bringing this mess up on the devel list.
*** This bug has been marked as a duplicate of bug 1227001 ***