Don't umount anything in /sys like we do for /proc and /dev

This commit is contained in:
Roy Marples 2007-10-05 13:37:57 +00:00
parent 2691f95a3a
commit 93684b646e

View File

@ -151,8 +151,8 @@ stop() {
# Don't unmount anything for VPS systems # Don't unmount anything for VPS systems
[ "${RC_SYS}" = "VPS" ] && return 0 [ "${RC_SYS}" = "VPS" ] && return 0
# We never unmount / or /dev or $RC_LIBDIR # We never unmount / or /dev or $RC_SVCDIR
local x= no_umounts="/|/dev|${RC_SVCDIR}" local x= no_umounts="/|/dev|/dev/.*|${RC_SVCDIR}"
# NO_UMOUNTS is taken from /etc/conf.d/localmount # NO_UMOUNTS is taken from /etc/conf.d/localmount
# RC_NO_UMOUNTS is taken from /etc/conf.d/rc and can also be # RC_NO_UMOUNTS is taken from /etc/conf.d/rc and can also be
@ -169,7 +169,7 @@ stop() {
fi fi
if [ "${RC_UNAME}" = "Linux" ] ; then if [ "${RC_UNAME}" = "Linux" ] ; then
no_umounts="${no_umounts}|/dev/pts|/dev/shm|/proc|/proc/.*|/sys" no_umounts="${no_umounts}|/proc|/proc/.*|/sys|/sys/.*"
fi fi
no_umounts="^(${no_umounts})$" no_umounts="^(${no_umounts})$"