No point in re-mounting ro filesystems that are already ro.
This commit is contained in:
parent
a566493eb8
commit
5983add0f2
@ -82,6 +82,7 @@ if [ "${RC_UNAME}" = "Linux" ]; then
|
|||||||
[ -n "${fs}" ] && fs="^(${fs})$"
|
[ -n "${fs}" ] && fs="^(${fs})$"
|
||||||
do_unmount "mount -n -o remount,ro" \
|
do_unmount "mount -n -o remount,ro" \
|
||||||
--skip-point-regex "^(/dev|/dev/.*|/proc|/proc/.*|/sys|/sys/.*)$" \
|
--skip-point-regex "^(/dev|/dev/.*|/proc|/proc/.*|/sys|/sys/.*)$" \
|
||||||
|
--skip-options-regex "^ro" \
|
||||||
${fs:+--skip-fstype-regex} ${fs} --nonetdev
|
${fs:+--skip-fstype-regex} ${fs} --nonetdev
|
||||||
eoutdent
|
eoutdent
|
||||||
eend $?
|
eend $?
|
||||||
|
Loading…
Reference in New Issue
Block a user