diff --git a/setup b/setup index ca10d01c..31144531 100755 --- a/setup +++ b/setup @@ -146,7 +146,16 @@ install() { . /etc/os-release setupRW "${ROOTFS}" "${RWETCFS}" "${RWVARFS}" - cmd_dnf_install="dnf -y install --releasever=${VERSION_ID} --installroot ${ROOTFS} ${PACKAGES_TO_INSTALL}" + EXTRA_FLAG="" + if grep -qi "^ID=fedora" /etc/os-release; then + EXTRA_FLAG="--use-host-config" + fi + + cmd_dnf_install="dnf -y install --releasever=${VERSION_ID} --installroot ${ROOTFS} ${PACKAGES_TO_INSTALL} ${EXTRA_FLAG}" + + echo "=====DEBUG===========" + echo "$cmd_dnf_install" + echo "=====DEBUG===========" ${cmd_dnf_install} if dnf --installroot "${ROOTFS}" list installed "${PACKAGES_TO_REMOVE}" > /dev/null 2>&1; then