Don't unmount stuff in /dev or /sys

This commit is contained in:
Roy Marples 2007-10-05 14:15:06 +00:00
parent 93684b646e
commit 9d18c195d7

View File

@ -72,7 +72,7 @@ if [ "${RC_UNAME}" = "Linux" ] ; then
fs="${fs}${fs:+|}${x}"
done
[ -n "${fs}" ] && fs="^(${fs})$"
do_unmount "mount -n -o remount,ro" "^(/dev|/dev/pts|/dev/shm|/proc|/proc/.*|/sys)$" "" "" "${fs}"
do_unmount "mount -n -o remount,ro" "^(/dev|/dev/.*|/proc|/proc/.*|/sys|/sys/.*)$" "" "" "${fs}"
eoutdent
eend $?
unmounted=$?