allow bypassing use of slow/unreliable archive apt sources. Useful when using own LFS cache or similar

This commit is contained in:
Lance Vick 2023-09-03 02:47:17 -07:00
parent 9ddcbe18e5
commit fda01343a5
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 6 additions and 2 deletions

View File

@ -5,10 +5,14 @@ set -e
ARCH=$(uname -m)
cp /config/apt-sources-x86_64.list /etc/apt/sources.list
echo ARCHIVE_SOURCES -> $ARCHIVE_SOURCES
if [[ "${ARCHIVE_SOURCES}" == "true" ]]; then
rm /etc/apt/sources.list.d/*
cp /config/apt-sources-x86_64.list /etc/apt/sources.list
fi
cp /config/apt-hashes-x86_64.list /etc/apt/
cp /config/apt-pins-x86_64.list /etc/apt/
rm /etc/apt/sources.list.d/*
apt update -o Acquire::Check-Valid-Until=false
until apt-get install \