No point in re-mounting ro filesystems that are already ro.

This commit is contained in:
Roy Marples 2008-07-09 14:24:48 +00:00
parent a566493eb8
commit 5983add0f2

View File

@ -82,6 +82,7 @@ if [ "${RC_UNAME}" = "Linux" ]; then
[ -n "${fs}" ] && fs="^(${fs})$"
do_unmount "mount -n -o remount,ro" \
--skip-point-regex "^(/dev|/dev/.*|/proc|/proc/.*|/sys|/sys/.*)$" \
--skip-options-regex "^ro" \
${fs:+--skip-fstype-regex} ${fs} --nonetdev
eoutdent
eend $?