From efe53640acc871ed2d60903774577e8a5565672c Mon Sep 17 00:00:00 2001 From: Benjamin Sherman Date: Wed, 31 May 2023 09:14:52 -0500 Subject: [PATCH] feat: use custom repos provided by akmods (#236) --- build.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index ec88668c..d90ed9d4 100755 --- a/build.sh +++ b/build.sh @@ -24,8 +24,18 @@ rpm-ostree install \ /tmp/rpms/*.rpm \ fedora-repos-archive -rpm-ostree install \ - /tmp/akmods-rpms/*.rpm +rpm-ostree install /tmp/akmods-rpms/ublue-os/ublue-os-akmods-addons*.rpm +for REPO in $(rpm -ql ublue-os-akmods-addons|grep ^"/etc"|grep repo$); do + echo "akmods: enable default entry: ${REPO}" + sed -i '0,/enabled=0/{s/enabled=0/enabled=1/}' ${REPO} +done + +rpm-ostree install /tmp/akmods-rpms/kmods/*.rpm + +for REPO in $(rpm -ql ublue-os-akmods-addons|grep ^"/etc"|grep repo$); do + echo "akmods: disable per defaults: ${REPO}" + sed -i 's@enabled=1@enabled=0@g' ${REPO} +done if [[ "${#INCLUDED_PACKAGES[@]}" -gt 0 && "${#EXCLUDED_PACKAGES[@]}" -eq 0 ]]; then rpm-ostree install \