kernel-{rc,next}-tfg are moved to the kernel-tfg repo; enable "metadata_expire" for my COPR repos

This commit is contained in:
Pratham Patel 2023-10-31 09:38:00 +05:30
parent d23e216bf8
commit 1bbe69eee7
No known key found for this signature in database
2 changed files with 7 additions and 15 deletions

View File

@ -33,26 +33,19 @@ if dnf list installed | grep '@epel' > /dev/null || dnf list installed | grep 'e
fi
fi
# Enable my COPR for regular updates for the Stable and LTS kernels.
# this has kernels with defconfigs
dnf copr enable --assumeyes prathampatel/kernel-tfg "rhel-${DNF_RELEASEVER}-${MACHINE_ARCH}"
if ! dnf repolist --enabled | grep 'copr:copr.fedorainfracloud.org:prathampatel:kernel-tfg' > /dev/null; then
dnf config-manager --set-enabled 'copr:copr.fedorainfracloud.org:prathampatel:kernel-tfg' || exit 1
fi
echo 'metadata_expire=1200' | tee -a '/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:prathampatel:kernel-tfg.repo'
# Enable my testing COPR in case the user installed something from there
if dnf list installed | grep '@COPR-kernel-testing-tfg' > /dev/null; then
dnf copr enable --assumeyes prathampatel/kernel-testing-tfg "rhel-${DNF_RELEASEVER}-${MACHINE_ARCH}"
if ! dnf repolist --enabled | grep 'copr:copr.fedorainfracloud.org:prathampatel:kernel-testing-tfg' > /dev/null; then
dnf config-manager --set-enabled 'copr:copr.fedorainfracloud.org:prathampatel:kernel-testing-tfg' || exit 1
fi
fi
if dnf list installed | grep '@COPR-elrepo-kernel' > /dev/null; then
dnf copr enable --assumeyes prathampatel/elrepo-kernel "rhel-${DNF_RELEASEVER}-${MACHINE_ARCH}"
if ! dnf repolist --enabled | grep 'copr:copr.fedorainfracloud.org:prathampatel:elrepo-kernel' > /dev/null; then
# this has kernels with elrepo + sbc enablement
dnf copr enable --assumeyes prathampatel/elrepo-kernel "rhel-${DNF_RELEASEVER}-${MACHINE_ARCH}"
if ! dnf repolist --enabled | grep 'copr:copr.fedorainfracloud.org:prathampatel:elrepo-kernel' > /dev/null; then
dnf config-manager --set-enabled 'copr:copr.fedorainfracloud.org:prathampatel:elrepo-kernel' || exit 1
fi
fi
echo 'metadata_expire=2400' | tee -a '/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:prathampatel:elrepo-kernel.repo'
# upgrade all packages for the user's happy smile
dnf clean expire-cache

View File

@ -1,3 +1,2 @@
# Enable Pratham Patel's COPR that provides the Linux kernel
repo --install --name=COPR-kernel-tfg --baseurl=https://download.copr.fedorainfracloud.org/results/prathampatel/kernel-tfg/rhel-$releasever-$basearch
repo --install --name=COPR-kernel-testing-tfg --baseurl=https://download.copr.fedorainfracloud.org/results/prathampatel/kernel-testing-tfg/rhel-$releasever-$basearch