Commit 0e49b497 authored by Cyril Brulebois's avatar Cyril Brulebois

Add support for SNAPSHOT_TS

This makes it possible to use a specific timestamp of the Debian archive
on snapshot.debian.org instead of the detected mirror; disable
Valid-Until check when this is requested, since signatures are likely
expired. Most useful for bisecting when a specific regression was
introduced.

See: #872598

Note: This relies on apt (>= 1.1~exp9) for Check-Valid-Until support
inside sources.list. Otherwise, build/util/get-packages needs to be
modified to pass an extra option to apt-get.
parent 694b7d36
......@@ -74,6 +74,11 @@ for mirror in $MIRRORS; do
# We should also check that d-i is available, but that's more complex.
# Settle for just checking the suite/codename for now.
if echo "$mirror" | grep -Eq "^deb (f|ht)tp"; then
# Switch to snapshot.debian.org if requested:
if [ -n "$SNAPSHOT_TS" ]; then
mirror="deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/$SNAPSHOT_TS/"
echo "INFO: using snapshot.debian.org with timestamp: $SNAPSHOT_TS" >&2
fi
if test_url $tmirror/dists/$SUITE/Release; then
echo "$mirror $SUITE $UDEB_COMPONENTS"
else
......
......@@ -7,6 +7,11 @@ debian-installer (201709XX) UNRELEASED; urgency=medium
[ Cyril Brulebois ]
* Bump Linux kernel ABI from 4.12.0-1 to 4.12.0-2.
* Add support for SNAPSHOT_TS to use a specific timestamp of the Debian
archive on snapshot.debian.org instead of the detected mirror; disable
Valid-Until check when this is requested, since signatures are likely
expired. Most useful for bisecting when a specific regression was
introduced. (See: #872598)
[ Karsten Merker ]
* Bump Linux kernel ABI from 4.12.0-2 to 4.13.0-1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment