From d84a54f4e1c4a075a125fd19422cab68f9ba5f62 Mon Sep 17 00:00:00 2001 From: joshua-stone Date: Tue, 7 Feb 2023 22:37:13 -0500 Subject: [PATCH] Disable unnecessary repos at the end of builds (#28) * feat: Add devel branch to pull request process * feat: Add Kinoite base image support (#22) * Re-enable updates-archive repo to fix kernel mismatches * Add kinoite image to support matrix * chore: add release bot and changelog generator (#19) * docs: Add a goal/purpose to better explain what this does (#25) * feat: disable unnecessary repos at the end of the container build (#27) --------- Co-authored-by: Jorge O. Castro --- Containerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Containerfile b/Containerfile index a0debda..47fa1d8 100644 --- a/Containerfile +++ b/Containerfile @@ -70,12 +70,16 @@ RUN KERNEL_VERSION="$(rpm -q kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH} rpm-ostree install \ https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \ https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm \ + && \ + sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/{fedora-{cisco-openh264,modular,updates-modular},rpmfusion-free{,-updates}}.repo \ && \ rpm-ostree install \ xorg-x11-drv-${NVIDIA_PACKAGE_NAME}-{,cuda-,devel-,kmodsrc-,power-}${NVIDIA_FULL_VERSION} \ kernel-devel-${KERNEL_VERSION} \ "/tmp/akmods/${NVIDIA_PACKAGE_NAME}/kmod-${NVIDIA_PACKAGE_NAME}-${KERNEL_VERSION}-${NVIDIA_FULL_VERSION#*:}.rpm" \ /tmp/akmods-nvidia-key/rpmbuild/RPMS/noarch/akmods-nvidia-key-*.rpm \ + && \ + sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/rpmfusion-nonfree{,-updates}.repo \ && \ ln -s /usr/bin/ld.bfd /etc/alternatives/ld && \ ln -s /etc/alternatives/ld /usr/bin/ld \