Skip to content

Commit

Permalink
Use the archive repo for Buster (sonic-net#18678)
Browse files Browse the repository at this point in the history
Why I did it
Buster is EOL, and the backports section has been removed from the main Debian repos. This also means that our default mirror (for non-snapshot builds) is also affected.

Work item tracking
Microsoft ADO (number only): 27691460
How I did it
Change to using archive.debian.org directly for Buster.

How to verify it
  • Loading branch information
saiarcot895 authored and tiger_fu committed May 2, 2024
1 parent be7b5de commit 98741ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/build_mirror_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ if [ "$ARCHITECTURE" == "armhf" ]; then
DEFAULT_MIRROR_SECURITY_URLS=http://deb.debian.org/debian-security/
fi

if [ "$DISTRIBUTION" == "buster" ]; then
DEFAULT_MIRROR_URLS=http://archive.debian.org/debian/
fi

if [ "$MIRROR_SNAPSHOT" == y ]; then
if [ -f "$MIRROR_VERSION_FILE" ]; then
DEBIAN_TIMESTAMP=$(grep "^debian==" $MIRROR_VERSION_FILE | tail -n 1 | sed 's/.*==//')
Expand Down

0 comments on commit 98741ba

Please sign in to comment.