import key for the tfg kernel repos too

This commit is contained in:
Pratham Patel 2023-11-20 18:10:58 +05:30
parent e8441c436c
commit 7c0418f9d6
No known key found for this signature in database

View File

@ -37,11 +37,6 @@ if ! dnf repolist --enabled | grep 'copr:copr.fedorainfracloud.org:prathampatel:
fi
echo 'metadata_expire=1200' | tee -a '/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:prathampatel:kernel-tfg.repo'
# manually import the GPG key for my COPR
wget 'https://download.copr.fedorainfracloud.org/results/prathampatel/kernel-elrepo/pubkey.gpg'
rpm --import pubkey.gpg
rm pubkey.gpg
# this has kernels with elrepo + sbc enablement
dnf copr enable --assumeyes prathampatel/kernel-elrepo "rhel-${DNF_RELEASEVER}-${MACHINE_ARCH}"
if ! dnf repolist --enabled | grep 'copr:copr.fedorainfracloud.org:prathampatel:kernel-elrepo' > /dev/null; then
@ -49,6 +44,12 @@ if ! dnf repolist --enabled | grep 'copr:copr.fedorainfracloud.org:prathampatel:
fi
echo 'metadata_expire=2400' | tee -a '/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:prathampatel:kernel-elrepo.repo'
# manually import the GPG keys for my COPRs
wget 'https://download.copr.fedorainfracloud.org/results/prathampatel/kernel-tfg/pubkey.gpg' -O kernel-tfg-pubkey.gpg
wget 'https://download.copr.fedorainfracloud.org/results/prathampatel/kernel-elrepo/pubkey.gpg' -O kernel-elrepo-pubkey.gpg
rpm --import kernel-{tfg,elrepo}-pubkey.gpg
rm -vf kernel-{tfg,elrepo}-pubkey.gpg
# upgrade all packages for the user's happy smile
dnf clean expire-cache
dnf upgrade -y