Skip to content

Commit cfe5e5c

Browse files
saiarcot895fengkm
authored andcommitted
Use the archive repo for Buster (sonic-net#18678)
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
1 parent 6c28640 commit cfe5e5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/build_mirror_config.sh

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ if [ "$ARCHITECTURE" == "armhf" ]; then
2121
DEFAULT_MIRROR_SECURITY_URLS=http://deb.debian.org/debian-security/,http://packages.trafficmanager.net/debian/debian-security/
2222
fi
2323

24+
if [ "$DISTRIBUTION" == "buster" ]; then
25+
DEFAULT_MIRROR_URLS=http://archive.debian.org/debian/
26+
fi
27+
2428
if [ "$MIRROR_SNAPSHOT" == y ]; then
2529
if [ -f "$MIRROR_VERSION_FILE" ]; then
2630
DEBIAN_TIMESTAMP=$(grep "^debian==" $MIRROR_VERSION_FILE | tail -n 1 | sed 's/.*==//')

0 commit comments

Comments
 (0)