From 1bbe69eee759a0d652f897a749cbdae9eb70f2b6 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Tue, 31 Oct 2023 09:38:00 +0530 Subject: [PATCH] kernel-{rc,next}-tfg are moved to the kernel-tfg repo; enable "metadata_expire" for my COPR repos --- includes/post/rpm-repos-enable.ksi | 21 +++++++-------------- includes/repos/kernel-tfg.ksi | 1 - 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/includes/post/rpm-repos-enable.ksi b/includes/post/rpm-repos-enable.ksi index 034f17b..c883da3 100644 --- a/includes/post/rpm-repos-enable.ksi +++ b/includes/post/rpm-repos-enable.ksi @@ -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 - dnf config-manager --set-enabled 'copr:copr.fedorainfracloud.org:prathampatel:elrepo-kernel' || exit 1 - fi +# 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 +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 diff --git a/includes/repos/kernel-tfg.ksi b/includes/repos/kernel-tfg.ksi index f8d0323..e2f4711 100644 --- a/includes/repos/kernel-tfg.ksi +++ b/includes/repos/kernel-tfg.ksi @@ -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