chore: fix builds by enabling updates (#1853)
This commit is contained in:
parent
672a8a2828
commit
ca358884ff
2 changed files with 26 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
25
build_files/build-fix.sh
Executable file
25
build_files/build-fix.sh
Executable file
|
|
@ -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
|
||||
Loading…
Reference in a new issue