Move cleanup of package list cache from GRMLBASE to RELEASE
[grml-live.git] / etc / grml / fai / config / scripts / RELEASE / 98-clean-chroot
index d89f5de..d65e992 100755 (executable)
@@ -9,6 +9,17 @@
 set -u
 set -e
 
+
+echo "Removing /var/lib/apt/lists/*-stuff, dpkg-status-old and pkgcache.bin"
+rm -f $target/var/lib/apt/lists/*Packages \
+      $target/var/lib/apt/lists/*Release \
+      $target/var/lib/apt/lists/*Sources \
+      $target/var/lib/apt/lists/*IndexDiff \
+      $target/var/lib/apt/lists/*.gpg \
+      $target/var/cache/apt-show-versions/* \
+      $target/var/cache/debconf/templates.dat-old \
+      $target/var/cache/apt/*.bin
+
 # Remove all FAI logs from chroot via grml-live later then
 echo "Setting up /etc/grml_fai_release for grml-live"
 touch $target/etc/grml_fai_release