diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index ff0b43f..7acfe6b 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -22,7 +22,7 @@ [ -n "${SPCD_URL_ALPINE}" ] || SPCD_URL_ALPINE="https://dl-cdn.alpinelinux.org/alpine" [ -n "${SPCD_URL_ARCH}" ] || - SPCD_URL_ARCH="https://geo.mirror.pkgbuild.com" + SPCD_URL_ARCH="https://geo.mirror.pkgbuild.com/\$repo/os/\$arch" [ -n "${SPCD_URL_DEBIAN}" ] || SPCD_URL_DEBIAN="https://deb.debian.org/debian" [ -n "${SPCD_URL_EPEL}" ] || @@ -840,6 +840,11 @@ spcd_step__packages_set_repositories() { spcd_os_write "/etc/apk/repositories" "\ ${SPCD_URL_ALPINE}/v${SPCD_OS_VERSION}/main ${SPCD_URL_ALPINE}/v${SPCD_OS_VERSION}/community +" + ;; + "${SPCD_OS_ARCH}") + spcd_os_write "/etc/pacman.d/mirrorlist" "\ +Server = ${SPCD_URL_ARCH} " ;; "${SPCD_OS_DEBIAN}") @@ -850,6 +855,19 @@ deb ${SPCD_URL_DEBIAN} ${SPCD_OS_VERSION}-updates main deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main " ;; + "${SPCD_OS_FEDORA}") + for spcd_spr__file in \ + "fedora" \ + "fedora-updates" \ + "fedora-updates-testing"; do + spcd_os_sed "/etc/yum.repos.d/${spcd_spr__file}.repo" \ + "|^metalink|# metalink|" \ + "|http://download.example|${SPCD_URL_FEDORA}|" \ + "|^#baseurl|baseurl|" + done + spcd_os_sed "/etc/yum.repos.d/fedora-cisco-openh264.repo" \ + "|^enabled=1|# enabled=0|" + ;; "${SPCD_OS_OPENSUSE}") for spcd_spr__file in \ "backports-update" \