get-fedora-latest-config: enable only fedora and fedora-updates when downloading the rpm

This commit is contained in:
Frédéric Pierret (fepitre) 2019-04-20 17:12:07 +02:00
parent 5a1a029434
commit a48e051be2
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -45,7 +45,7 @@ if [ "x$latestrpm" != "x" ] && [ "x$releasever" != "x" ]; then
tmpdir="$(mktemp -d -p "$localdir")" tmpdir="$(mktemp -d -p "$localdir")"
# download latest kernel rpm # download latest kernel rpm
dnf -q download kernel-core --disablerepo=*modular* --releasever="$releasever" dnf -q download kernel-core --disablerepo=* --enablerepo=fedora --enablerepo=updates --releasever="$releasever"
mv "$latestrpm" "$tmpdir/$latestrpm.untrusted" mv "$latestrpm" "$tmpdir/$latestrpm.untrusted"
# check signature # check signature