Move romount to mount-ro and use the umount -r option as it's more reliable for / --bind mounts, Gentoo #239922. Thanks to Duncan.

This commit is contained in:
Roy Marples
2008-11-04 11:30:15 +00:00
parent 45044c9239
commit 42e6a95b1d
5 changed files with 6 additions and 6 deletions

2
init.d/.gitignore vendored
View File

@@ -7,8 +7,8 @@ hostname
killprocs
local
localmount
mount-ro
netmount
romount
root
savecache
swap

View File

@@ -1,7 +1,7 @@
NET_LO= net.lo
SRCS+= devfs.in dmesg.in hwclock.in consolefont.in keymaps.in killprocs.in \
modules.in mtab.in numlock.in procfs.in romount.in sysfs.in \
modules.in mount-ro.in mtab.in numlock.in procfs.in sysfs.in \
termencoding.in
# This really belongs with sysvinit

View File

@@ -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