Skip to content

Commit

Permalink
feat: use custom repos provided by akmods (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman authored May 31, 2023
1 parent d6d98a2 commit efe5364
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit efe5364

Please sign in to comment.