From 58dc41af6a852ba078859fbfa0990cdc1907c8d7 Mon Sep 17 00:00:00 2001 From: Benjamin Sherman Date: Fri, 9 Feb 2024 15:00:20 -0600 Subject: [PATCH] chore: enable rpmfusion testing repos (#497) this passes all checks but keeps failing on random github actions hiccups. --- install.sh | 6 ++++++ kmods-install.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/install.sh b/install.sh index c10142c8..3743965f 100755 --- a/install.sh +++ b/install.sh @@ -12,6 +12,12 @@ rpm-ostree install \ /tmp/rpms/*.rpm \ fedora-repos-archive +if [[ "${FEDORA_MAJOR_VERSION}" -ge 39 ]]; then + # note: this is done before single mirror hack to ensure this persists in image and is not reset + echo "Enable rpmfusion-(non)free-updates-testing with low priority for Fedora ${FEDORA_MAJOR_VERSION}" + sed -i '0,/enabled=0/{s/enabled=0/enabled=1\npriority=110/}' /etc/yum.repos.d/rpmfusion-*-updates-testing.repo +fi + if [ -n "${RPMFUSION_MIRROR}" ]; then # force use of single rpmfusion mirror echo "Using single rpmfusion mirror: ${RPMFUSION_MIRROR}" diff --git a/kmods-install.sh b/kmods-install.sh index 30a5fd7f..7cd12d80 100755 --- a/kmods-install.sh +++ b/kmods-install.sh @@ -23,6 +23,12 @@ for REPO in $(rpm -ql ublue-os-akmods-addons|grep ^"/etc"|grep repo$); do sed -i '0,/enabled=0/{s/enabled=0/enabled=1/}' ${REPO} done +if [[ "${FEDORA_MAJOR_VERSION}" -ge 39 ]]; then + # note: this is done before single mirror hack to ensure this persists in image and is not reset + echo "Enable rpmfusion-(non)free-updates-testing with low priority for Fedora ${FEDORA_MAJOR_VERSION}" + sed -i '0,/enabled=0/{s/enabled=0/enabled=1\npriority=110/}' /etc/yum.repos.d/rpmfusion-*-updates-testing.repo +fi + if [ -n "${RPMFUSION_MIRROR}" ]; then # force use of single rpmfusion mirror echo "Using single rpmfusion mirror: ${RPMFUSION_MIRROR}"