kernel-{rc,next}-tfg are moved to the kernel-tfg repo; enable "metadata_expire" for my COPR repos
This commit is contained in:
parent
d23e216bf8
commit
1bbe69eee7
@ -33,26 +33,19 @@ if dnf list installed | grep '@epel' > /dev/null || dnf list installed | grep 'e
|
|||||||
fi
|
fi
|
||||||
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}"
|
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
|
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
|
dnf config-manager --set-enabled 'copr:copr.fedorainfracloud.org:prathampatel:kernel-tfg' || exit 1
|
||||||
fi
|
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
|
# this has kernels with elrepo + sbc enablement
|
||||||
if dnf list installed | grep '@COPR-kernel-testing-tfg' > /dev/null; then
|
dnf copr enable --assumeyes prathampatel/elrepo-kernel "rhel-${DNF_RELEASEVER}-${MACHINE_ARCH}"
|
||||||
dnf copr enable --assumeyes prathampatel/kernel-testing-tfg "rhel-${DNF_RELEASEVER}-${MACHINE_ARCH}"
|
if ! dnf repolist --enabled | grep 'copr:copr.fedorainfracloud.org:prathampatel:elrepo-kernel' > /dev/null; then
|
||||||
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:elrepo-kernel' || exit 1
|
||||||
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
|
|
||||||
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
|
# upgrade all packages for the user's happy smile
|
||||||
dnf clean expire-cache
|
dnf clean expire-cache
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
# Enable Pratham Patel's COPR that provides the Linux kernel
|
# 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-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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user