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
changes/49/2049/2
Michael Prokop 10 years ago
parent 364a434d04
commit c938ceaa62

@ -1316,6 +1316,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"

Loading…
Cancel
Save