only one kernel (kernel-mainline-sbc) and one COPR)

This commit is contained in:
Pratham Patel 2024-01-01 11:54:01 +05:30
parent ba17f2c31c
commit b6204e053f
No known key found for this signature in database
4 changed files with 10 additions and 28 deletions

View File

@ -8,16 +8,7 @@ rocky-release
@standard
# Kernel selection
# (coprs/prathampatel/kernel-tfg/packages) "testing" kernels with defaults
#kernel-lts-tfg
#kernel-stable-tfg
#kernel-rc-tfg
#kernel-next-tfg
# (coprs/prathampatel/kernel-elrepo) "prod" kernels
#kernel-lts
kernel-stable
#kernel-mainline
#kernel-next
kernel-mainline-sbc
# Other necessary packages
cloud-utils-growpart

View File

@ -30,25 +30,17 @@ if dnf list installed | grep '@epel' > /dev/null || dnf list installed | grep 'e
fi
fi
# 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
# SIG/kernel's kernel-mainline-sbc
dnf copr enable --assumeyes prathampatel/kernel-rocky "rhel-${DNF_RELEASEVER}-${MACHINE_ARCH}"
if ! dnf repolist --enabled | grep 'copr:copr.fedorainfracloud.org:prathampatel:kernel-rocky' > /dev/null; then
dnf config-manager --set-enabled 'copr:copr.fedorainfracloud.org:prathampatel:kernel-rocky' || exit 1
fi
echo 'metadata_expire=1200' | tee -a '/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:prathampatel:kernel-tfg.repo'
# 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
dnf config-manager --set-enabled 'copr:copr.fedorainfracloud.org:prathampatel:kernel-elrepo' || exit 1
fi
echo 'metadata_expire=2400' | tee -a '/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:prathampatel:kernel-elrepo.repo'
echo 'metadata_expire=2400' | tee -a '/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:prathampatel:kernel-rocky.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
wget 'https://download.copr.fedorainfracloud.org/results/prathampatel/kernel-rocky/pubkey.gpg' -O kernel-rocky-pubkey.gpg
rpm --import kernel-elrepo-pubkey.gpg
rm -vf kernel-elrepo-pubkey.gpg
dnf clean expire-cache

View File

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

View File

@ -1,4 +1,3 @@
%include elrepo-tfg.ksi
%include epel.ksi
%include kernel-tfg.ksi
%include rocky.ksi