aurora/build_scripts/shared/build-prep.sh
2026-10-14 16:19:20 +00:00

32 lines
904 B
Bash
Executable file

# This script should generally set up the build so we can move on to start installing packages
#!/usr/bin/bash
set -eoux pipefail
# Speeds up local builds and workaround network flakes, mainly for COPR, negativo and terra
cp /etc/dnf/dnf.conf /etc/dnf/dnf.conf.bak
dnf config-manager setopt keepcache=1 timeout=60
# configuring dnf repos
BUILD_FILES=(
"/ctx/build_files/shared/"
)
if [[ "${IMAGE_FLAVOR}" == "dx" ]]; then
BUILD_FILES+=("/ctx/build_files/dx/")
fi
rsync -rvKl "${BUILD_FILES[@]}" /
# mostly for codecs fedora can't ship
dnf config-manager setopt fedora-multimedia.priority=90
# https://fedoraproject.org/wiki/OpenH264
# this would be fine to use as well, negativo just has it, one less repo
dnf config-manager disable fedora-cisco-openh264
mkdir -p /tmp/scripts/helpers
install -Dm0755 /ctx/build_scripts/shared/utils/ghcurl /tmp/scripts/helpers/ghcurl
echo "::endgroup::"