aboutsummaryrefslogtreecommitdiff
path: root/init.d/mount-ro.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-11-04 11:30:15 +0000
committerRoy Marples <roy@marples.name>2008-11-04 11:30:15 +0000
commit42e6a95b1d691b2fcdb49cd57f8ae94acbe27a2c (patch)
tree19727d3a3b7aef12d0ea23ead1f20d3652d9574d /init.d/mount-ro.in
parent45044c9239ef5eb06a3cc9e5110131cd0d8210ef (diff)
Move romount to mount-ro and use the umount -r option as it's more reliable for / --bind mounts, Gentoo #239922. Thanks to Duncan.
Diffstat (limited to 'init.d/mount-ro.in')
-rw-r--r--init.d/mount-ro.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/mount-ro.in b/init.d/mount-ro.in
index e39384a3..2fb83c0a 100644
--- a/init.d/mount-ro.in
+++ b/init.d/mount-ro.in
@@ -37,7 +37,7 @@ start()
fs="${fs}${fs:+|}${x}"
done
[ -n "${fs}" ] && fs="^(${fs})$"
- do_unmount "mount -n -o remount,ro" \
+ do_unmount "umount -r" \
--skip-point-regex "${m}" \
${fs:+--skip-fstype-regex} ${fs} --nonetdev
eoutdent