From 79e718c57525350279fd033da8a387763bb7faca Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 9 Jul 2010 14:32:05 +0200 Subject: [PATCH] grml_cleanup_chroot: drop all [u]mount commands Try to get rid of (possibly) unnecessary mount points like /proc and /sys inside the cleanup process. Signed-off-by: Michael Prokop --- etc/grml/fai/grml/grml_cleanup_chroot | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/etc/grml/fai/grml/grml_cleanup_chroot b/etc/grml/fai/grml/grml_cleanup_chroot index d774289..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 @@ -336,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 # ~~~~~~~~~~ -- 2.1.4