rm -rf $CHROOTDIR/stage2
rm -f /stage2
cd $CHROOTDIR
rm -rf tmp/*
umount .{/dev,/proc,/sys,$CACHEDIR}
chroot $CHROOTDIR upkg-remove --force db
chroot $CHROOTDIR upkg-remove --force gettext
chroot $CHROOTDIR upkg-remove --force logrotate
chroot $CHROOTDIR upkg-remove --force alsa-utils
chroot $CHROOTDIR upkg-remove --force alsa-lib
chroot $CHROOTDIR upkg-remove --force postfix
chroot $CHROOTDIR upkg-remove --force bluez
chroot $CHROOTDIR upkg-remove --force klibc
find $CHROOTDIR/usr/share/locale/ -mindepth 1 -maxdepth 1 -type d | xargs -n 1 basename | ( while read locale ; do echo $locale; case "$locale" in en*|es*|fr*|pt*|de*|tr*|it*|pl*|hu*) ;; *) echo rm -rvf $CHROOTDIR/usr/share/locale/$locale ;; esac ; done )
rm -rf $CHROOTDIR/usr/share/{doc,gtk-doc}
rm -rf $CHROOTDIR/usr/src