summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ca2c8a5)
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>
find /var/run -name \*.pid -exec rm {} \;
eend $?
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
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
if [ -x /usr/bin/updatedb ] ; then
einfo "Updating locate-database"
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'
updatedb --prunepaths='/tmp /usr/tmp /var/tmp /grml /root /proc /sys'
eend $?
else
ewarn "updatedb not installed" ; eend 0
fi
eend $?
else
ewarn "updatedb not installed" ; eend 0
fi
-einfo "Unmounting all filesystems"
- umount -a
-eend $?
-
################################################################################
# MISC STUFF
# ~~~~~~~~~~
################################################################################
# MISC STUFF
# ~~~~~~~~~~