From 70ebf7d1ea6d925f46b97dec727067d3754cee7d Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 6 Jul 2015 11:47:48 +0200 Subject: [PATCH] MT#13711 Set up /etc/apt/apt.conf.d/42_ngcp_aptproxy on fresh lenny/squeeze installs When we install a fresh squeeze system we want to avoid the occasional "Hash Sum mismatch" errors during apt-get runs, so let's not only cover that via upgrades but also in the initial installation. Also cover it for Debian lenny, since it very probably might be affected as well (unverified though). Change-Id: I01dbeec5ef2a727e5749be5db3ebea47818ed3b5 (cherry picked from commit c938ceaa629af27e3ad648e90b5a9cc9dbd677e3) --- deployment.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/deployment.sh b/deployment.sh index 392a29a..2ca5740 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1203,6 +1203,17 @@ fi sync mount "$ROOT_FS" "$TARGET" +# MT#13711 +case "$DEBIAN_RELEASE" in + lenny|squeeze) + echo "Setting up /etc/apt/apt.conf.d/42_ngcp_aptproxy to avoid random 'Hash Sum mismatch' failures." + logit "Setting up /etc/apt/apt.conf.d/42_ngcp_aptproxy to avoid random 'Hash Sum mismatch' failures." + echo "// NGCP_MANAGED_FILE - do not remove this line if it should be automatically handled" > "${TARGET}/etc/apt/apt.conf.d/42_ngcp_aptproxy" + echo "// Installed via 'deployment.sh' on $(date)" >> "${TARGET}/etc/apt/apt.conf.d/42_ngcp_aptproxy" + echo 'Acquire::http::Pipeline-Depth "0";' >> "${TARGET}/etc/apt/apt.conf.d/42_ngcp_aptproxy" + ;; +esac + # MT#7805 if "$NGCP_INSTALLER" ; then cat << EOT | augtool --root="$TARGET"