X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fgrml%2Fgrml_cleanup_chroot;h=9e78a9f5956336ff5b1cb54ba091046c05220ad1;hp=1e01e40da5469d248b16f3137a67d3c6d3065a03;hb=79e718c57525350279fd033da8a387763bb7faca;hpb=97e3cccdc3cc6e992cc4c485ee445adaaa396ac4 diff --git a/etc/grml/fai/grml/grml_cleanup_chroot b/etc/grml/fai/grml/grml_cleanup_chroot index 1e01e40..9e78a9f 100755 --- a/etc/grml/fai/grml/grml_cleanup_chroot +++ b/etc/grml/fai/grml/grml_cleanup_chroot @@ -112,13 +112,6 @@ einfo "Removing pid-files" find /var/run -name \*.pid -exec rm {} \; eend $? -einfo "Unmounting proc, /dev/pts, /dev/capi" - umount /proc 2>/dev/null - umount /dev/pts 2>/dev/null - umount /dev/capi 2>/dev/null - umount -a 2>/dev/null -eend $? - einfo "Removing /var/lib/apt/lists/*-stuff, dpkg-status-old and pkgcache.bin" rm -f /var/lib/apt/lists/*Packages rm -f /var/lib/apt/lists/*Release @@ -147,14 +140,15 @@ fi # get rid of large kernel modules: if ifclass GRML_SMALL ; then + einfo "Identified grml-small, removing some very large kernel drivers:" if [ -r "/lib/modules/${KERNEL}/kernel/fs/ocfs2/ocfs2.ko" ] ; then einfo "Removing /lib/modules/${KERNEL}/kernel/fs/ocfs2/ocfs2.ko" rm -f "/lib/modules/${KERNEL}/kernel/fs/ocfs2/ocfs2.ko" eend $? fi - if [ -r "/lib/modules/${KERNEL}/kernel/drivers/isdn/hisax/hisax.ko" ] ; then - einfo "Removing /lib/modules/${KERNEL}/kernel/drivers/isdn/hisax/hisax.ko" - rm -f "/lib/modules/${KERNEL}/kernel/drivers/isdn/hisax/hisax.ko" + if [ -d "/lib/modules/${KERNEL}/kernel/drivers/isdn/hisax/" ] ; then + einfo "Removing /lib/modules/${KERNEL}/kernel/drivers/isdn/hisax" + rm -rf "/lib/modules/${KERNEL}/kernel/drivers/isdn/hisax" eend $? fi fi @@ -335,18 +329,12 @@ fi if [ -x /usr/bin/updatedb ] ; then einfo "Updating locate-database" - mount -t proc none /proc updatedb --prunepaths='/tmp /usr/tmp /var/tmp /grml /root /proc /sys' - umount /proc eend $? else ewarn "updatedb not installed" ; eend 0 fi -einfo "Unmounting all filesystems" - umount -a -eend $? - ################################################################################ # MISC STUFF # ~~~~~~~~~~