From b6b7309ffec3640a997fdc770681261369c0a1ef Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sun, 22 Oct 2023 21:48:45 +0530 Subject: [PATCH] add my testing elrepo copr --- includes/post/rpm-repos-enable.ksi | 7 +++++++ includes/repos/elrepo-tfg.ksi | 2 ++ includes/repos/repos-master.ksi | 1 + 3 files changed, 10 insertions(+) create mode 100644 includes/repos/elrepo-tfg.ksi diff --git a/includes/post/rpm-repos-enable.ksi b/includes/post/rpm-repos-enable.ksi index 8efdc39..034f17b 100644 --- a/includes/post/rpm-repos-enable.ksi +++ b/includes/post/rpm-repos-enable.ksi @@ -47,6 +47,13 @@ if dnf list installed | grep '@COPR-kernel-testing-tfg' > /dev/null; then 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 + # upgrade all packages for the user's happy smile dnf clean expire-cache dnf upgrade -y diff --git a/includes/repos/elrepo-tfg.ksi b/includes/repos/elrepo-tfg.ksi new file mode 100644 index 0000000..f1951d2 --- /dev/null +++ b/includes/repos/elrepo-tfg.ksi @@ -0,0 +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/elrepo-kernel/rhel-$releasever-$basearch diff --git a/includes/repos/repos-master.ksi b/includes/repos/repos-master.ksi index a0e0ec4..d2d258c 100644 --- a/includes/repos/repos-master.ksi +++ b/includes/repos/repos-master.ksi @@ -1,3 +1,4 @@ +%include elrepo-tfg.ksi %include epel.ksi %include kernel-tfg.ksi %include rocky.ksi