diff options
author | Roy Marples <roy@marples.name> | 2008-11-04 11:30:15 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-11-04 11:30:15 +0000 |
commit | 42e6a95b1d691b2fcdb49cd57f8ae94acbe27a2c (patch) | |
tree | 19727d3a3b7aef12d0ea23ead1f20d3652d9574d /init.d | |
parent | 45044c9239ef5eb06a3cc9e5110131cd0d8210ef (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')
-rw-r--r-- | init.d/.gitignore | 2 | ||||
-rw-r--r-- | init.d/Makefile.Linux | 2 | ||||
-rw-r--r-- | init.d/mount-ro.in | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/init.d/.gitignore b/init.d/.gitignore index dace4de5..626d7a2e 100644 --- a/init.d/.gitignore +++ b/init.d/.gitignore @@ -7,8 +7,8 @@ hostname killprocs local localmount +mount-ro netmount -romount root savecache swap diff --git a/init.d/Makefile.Linux b/init.d/Makefile.Linux index 1bf3fe70..fa4a6d09 100644 --- a/init.d/Makefile.Linux +++ b/init.d/Makefile.Linux @@ -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 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 |