remove cached debs to reduce diskpace during bootstrap
authorMichael Gebetsroither <michael@mgeb.org>
Thu, 3 Dec 2009 21:21:07 +0000 (22:21 +0100)
committerMichael Gebetsroither <michael@mgeb.org>
Thu, 3 Dec 2009 21:22:06 +0000 (22:22 +0100)
Signed-off-by: Michael Gebetsroither <michael@mgeb.org>
chroot-script

index 9ca8d12..75c6990 100755 (executable)
@@ -129,6 +129,12 @@ EOF
 }
 # }}}
 
+# remove now useless apt cache {{{
+remove_apt_cache() {
+    find /var/cache/apt/archives -name '*.deb' -exec rm -f '{}' \;
+}
+# }}}
+
 # install additional packages {{{
 packages() {
   # Pre-seed the debconf database with answers. Each question will be marked
@@ -435,7 +441,7 @@ trap signal_handler HUP INT QUIT TERM
  install_policy_rcd
 
  for i in chrootmirror grmlrepos kernelimg_conf \
-     kernel packages extrapackages reconfigure hosts interfaces   \
+     remove_apt_cache kernel packages extrapackages reconfigure hosts interfaces   \
      timezone fstab hostname initrd grub_config passwords custom_scripts   \
      services ; do
      if stage $i ; then