diff --git a/scripts/chroot.sh b/scripts/chroot.sh index d21e864866adc718c3726cab4741fce6da832765..0bb6a6256cacc1c4bd03a971e37409d8088c34d1 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -160,6 +160,16 @@ if [ "x${chroot_very_small_image}" = "xenable" ] ; then sudo sh -c "echo \"path-exclude=/usr/share/doc/*\" >> ${tempdir}/etc/dpkg/dpkg.cfg.d/excludes" sudo sh -c "echo \"\" >> ${tempdir}/etc/dpkg/dpkg.cfg.d/excludes" + #apt: no local cache + sudo sh -c "echo \"Dir::Cache {\" >> ${tempdir}/etc/apt/apt.conf.d/02nocache" + sudo sh -c "echo \" srcpkgcache \"\";\" >> ${tempdir}/etc/apt/apt.conf.d/02nocache" + sudo sh -c "echo \" pkgcache \"\";\" >> ${tempdir}/etc/apt/apt.conf.d/02nocache" + sudo sh -c "echo \"}\" >> ${tempdir}/etc/apt/apt.conf.d/02nocache" + + #apt: /var/lib/apt/lists/, store compressed only + sudo sh -c "echo \"Acquire::GzipIndexes \"true\";\" >> ${tempdir}/etc/apt/apt.conf.d/02compress-indexes" + sudo sh -c "echo \"Acquire::CompressionTypes::Order:: \"gz\";\" >> ${tempdir}/etc/apt/apt.conf.d/02compress-indexes" + echo "Log: after locale/man purge" report_size fi