grml_cleanup_chroot: drop all [u]mount commands
authorMichael Prokop <mika@grml.org>
Fri, 9 Jul 2010 12:32:05 +0000 (14:32 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 9 Jul 2010 12:32:05 +0000 (14:32 +0200)
Try to get rid of (possibly) unnecessary mount points like
/proc and /sys inside the cleanup process.

Signed-off-by: Michael Prokop <mika@grml.org>
etc/grml/fai/grml/grml_cleanup_chroot

index d774289..9e78a9f 100755 (executable)
@@ -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
 # ~~~~~~~~~~