Merge remote-tracking branch 'origin/ryansquared/restrict-packages-to-snapshot'

This commit is contained in:
Lance Vick 2023-05-05 11:20:01 -07:00
commit 46de4dddbd
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 1 additions and 3 deletions

View File

@ -6,14 +6,12 @@ set -e
snapshot_url="http://snapshot.debian.org/archive/debian" snapshot_url="http://snapshot.debian.org/archive/debian"
snapshot_date=$(date +"%Y%m%dT000000Z") snapshot_date=$(date +"%Y%m%dT000000Z")
cat <<-EOF > /etc/apt/sources.list cat <<-EOF > /etc/apt/sources.list
deb http://deb.debian.org/debian bookworm main
deb http://security.debian.org/debian-security bookworm-security main
deb http://deb.debian.org/debian bookworm-updates main
deb [trusted=yes] ${snapshot_url}/${snapshot_date} bookworm main deb [trusted=yes] ${snapshot_url}/${snapshot_date} bookworm main
deb [trusted=yes] ${snapshot_url}-security/${snapshot_date} bookworm-security main deb [trusted=yes] ${snapshot_url}-security/${snapshot_date} bookworm-security main
deb [trusted=yes] ${snapshot_url}/${snapshot_date} bookworm-updates main deb [trusted=yes] ${snapshot_url}/${snapshot_date} bookworm-updates main
EOF EOF
cp /etc/apt/sources.list /config/toolchain/ cp /etc/apt/sources.list /config/toolchain/
rm /etc/apt/sources.list.d/*
ARCH=$(uname -m) ARCH=$(uname -m)