From ce453d6b1c3a900d3d4e7fa7bd3f165707762dea Mon Sep 17 00:00:00 2001 From: Robert Nelson <robertcnelson@gmail.com> Date: Mon, 14 May 2018 10:38:32 -0500 Subject: [PATCH] chroot: stretch+ update index compression behavior fixes: https://github.com/RobertCNelson/omap-image-builder/issues/115 Signed-off-by: Robert Nelson <robertcnelson@gmail.com> --- scripts/chroot.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/chroot.sh b/scripts/chroot.sh index fd7d164b7..0f12bd7bc 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -321,9 +321,18 @@ if [ "x${deb_distribution}" = "xdebian" ] ; then echo 'Acquire::Languages "none";' > /tmp/02-no-languages sudo mv /tmp/02-no-languages "${tempdir}/etc/apt/apt.conf.d/02-no-languages" - #apt: /var/lib/apt/lists/, store compressed only - echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";' > /tmp/02compress-indexes - sudo mv /tmp/02compress-indexes "${tempdir}/etc/apt/apt.conf.d/02compress-indexes" + case "${deb_codename}" in + jessie) + #apt: /var/lib/apt/lists/, store compressed only + echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";' > /tmp/02compress-indexes + sudo mv /tmp/02compress-indexes "${tempdir}/etc/apt/apt.conf.d/02compress-indexes" + ;; + stretch|buster|sid) + #apt: /var/lib/apt/lists/, store compressed only + echo 'Acquire::GzipIndexes "true"; APT::Compressor::xz::Cost "40";' > /tmp/02compress-indexes + sudo mv /tmp/02compress-indexes "${tempdir}/etc/apt/apt.conf.d/02compress-indexes" + ;; + esac if [ "${apt_proxy}" ] ; then #apt: make sure apt-cacher-ng doesn't break oracle-java8-installer -- GitLab