get-fedora-latest-config: enable only Fedora repos

This commit is contained in:
Frédéric Pierret (fepitre) 2019-03-31 12:23:55 +02:00
parent f2ddd7a205
commit b16cc10308
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -33,7 +33,7 @@ elif [ "x$releasever" == "x" ]; then
fi
# get the latest kernel rpm
latestver=$(dnf -q repoquery kernel-core --disablerepo=*modular* --releasever="$releasever" | tail -1 | cut -d ':' -f2)
latestver=$(dnf -q repoquery kernel-core --disablerepo=* --enablerepo=fedora --enablerepo=updates --releasever="$releasever" | tail -1 | cut -d ':' -f2)
latestrpm="kernel-core-$latestver.rpm"
if [ "$releasever" == 'rawhide' ]; then