X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F98-clean-chroot;fp=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F98-clean-chroot;h=f808c6558c38390a2d98a8547a58ff88260e8214;hp=d36013c6af7d572fd2e9a618ec3e92c8ffd7ef4e;hb=99831cee7e2d25fdd2388e95c6b5f4e5e83b948a;hpb=feb84a92f79de3a77936a2eb0a5271dd87940e1c diff --git a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot index d36013c..f808c65 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -41,15 +41,8 @@ if grep -q 'updatebase.GRMLBASE' ${target}/etc/udev/kernel-upgrade 2>/dev/null ; $ROOTCMD rm -f /etc/udev/kernel-upgrade fi -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 +echo "Updating package list" +$ROOTCMD apt-get update echo "Cleaning apt places" $ROOTCMD apt-get check 2>/dev/null