Skip to content

Commit

Permalink
chore: fix builds by enabling updates (#1853)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman authored Oct 29, 2024
1 parent 672a8a2 commit ca35888
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions build_files/build-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ cp /ctx/system_files/shared/etc/ublue-update/ublue-update.toml /tmp/ublue-update
rsync -rvK /ctx/system_files/shared/ /
rsync -rvK /ctx/system_files/"${BASE_IMAGE_NAME}"/ /

/ctx/build_files/build-fix.sh
/ctx/build_files/firmware.sh
/ctx/build_files/cache_kernel.sh
/ctx/build_files/copr-repos.sh
Expand Down
25 changes: 25 additions & 0 deletions build_files/build-fix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/bash

set -eoux pipefail

# This script provides fixes to packages known to have caused build skew.
# It works by force replacing packages on the FROM image with current
# packages from fedora update repos.

repos=(
fedora-updates.repo
fedora-updates-archive.repo
)

for repo in "${repos[@]}"; do
if [ $(grep -c "enabled=1" /etc/yum.repos.d/${repo}) -eq 0 ]; then
sed -i "0,/enabled=0/{s/enabled=0/enabled=1/}" /etc/yum.repos.d/${repo}
fi
done

rpm-ostree override replace \
--experimental \
--from repo=updates \
elfutils-libelf \
elfutils-libs \
|| true

0 comments on commit ca35888

Please sign in to comment.