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

View File

@ -1,6 +1,6 @@
SYSINIT+= devfs dmesg
BOOT+= hwclock keymaps modules mtab net.lo procfs termencoding
SHUTDOWN+= killprocs romount
SHUTDOWN+= killprocs mount-ro
# This really belongs with sysvinit
SHUTDOWN+= halt

View File

@ -28,11 +28,11 @@ do_unmount()
mountinfo --quiet "${mnt}" || continue
case "${cmd}" in
umount*)
umount)
ebegin "Unmounting ${mnt}"
;;
*)
ebegin "Remounting ${mnt}"
ebegin "Remounting ${mnt} read only"
;;
esac