Package: base-installer Version: 1.107 Severity: wishlist Tags: patch Is there a reason why base-installer doesn't clear the apt cache after installing base? I end up with about 70 MB of .debs in /var/cache/apt/archives and this hurts on machines with little space (such as machines with only 512 MB flash storage).
The following patch, which clears the cache after debootstrap and then again at the end (after kernel/extra packages), works for me. OK to apply? Index: debian/bootstrap-base.postinst =================================================================== --- debian/bootstrap-base.postinst (revision 63510) +++ debian/bootstrap-base.postinst (working copy) @@ -131,6 +131,8 @@ exit_error base-installer/debootstrap-failed fi + cleanup + # Progress bar is now stepped to 100 } Index: library.sh =================================================================== --- library.sh (revision 63510) +++ library.sh (working copy) @@ -859,5 +859,6 @@ } cleanup () { + rm -f /target/var/cache/apt/archives/*.deb 2>/dev/null || true rm -f "$KERNEL_LIST" "$KERNEL_LIST.unfiltered" } -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100619132059.gn1...@jirafa.cyrius.com