set -eoux pipefail
cp /etc/dnf/dnf.conf /etc/dnf/dnf.conf.bak
dnf config-manager setopt keepcache=1 timeout=60
BUILD_FILES=(
"/ctx/build_files/shared/"
)
if [[ "${IMAGE_FLAVOR}" == "dx" ]]; then
BUILD_FILES+=("/ctx/build_files/dx/")
fi
rsync -rvKl "${BUILD_FILES[@]}" /
dnf config-manager setopt fedora-multimedia.priority=90
dnf config-manager disable fedora-cisco-openh264
mkdir -p /tmp/scripts/helpers
install -Dm0755 /ctx/build_scripts/shared/utils/ghcurl /tmp/scripts/helpers/ghcurl
install -Dm0755 /ctx/build_scripts/shared/utils/dnf-retry /tmp/scripts/helpers/dnf-retry
echo "::endgroup::"