Don't unmount stuff in /dev or /sys
This commit is contained in:
parent
93684b646e
commit
9d18c195d7
@ -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=$?
|
||||
|
Loading…
Reference in New Issue
Block a user