From f7d0c137832df2d867ef95f16e4f4ede31835150 Mon Sep 17 00:00:00 2001 From: Robert Nelson <robertcnelson@gmail.com> Date: Thu, 22 Aug 2013 09:54:55 -0500 Subject: [PATCH] bare image: tweak apt.conf settings: 86M Signed-off-by: Robert Nelson <robertcnelson@gmail.com> --- scripts/chroot.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/chroot.sh b/scripts/chroot.sh index d21e86486..0bb6a6256 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 -- GitLab