aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2005-12-02 21:33:43 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2005-12-02 21:33:43 +0000
commit6affdd30556b5b9fd9349ddc690b1c3fc8698fa4 (patch)
treeeda585834a6a3a730a97d50df26378a4247eb47e /etc
parent97ec6eba653a075113ed37cd3be493d86bf458a1 (diff)
downloadsrc-6affdd30556b5b9fd9349ddc690b1c3fc8698fa4.tar.gz
src-6affdd30556b5b9fd9349ddc690b1c3fc8698fa4.zip
"-o rw" is invalid and undocumented mount option that
is only present for fstab(5) compatibility, and is otherwise ignored by mount(8) (not passed to mount_* programs, and not passed to nmount(2)). "-u -o rw" worked with an old mount(8) with mount_ufs.c because "-o rw" was stripped and simple "-u" caused an update of UFS from read-only to read-write, due to inability of mount(2) to track changes in options (MNT_RDONLY is either set or not). "-u" no longer causes the transition from RO to RW, now that mount(8) was converted to use nmount(2), so an explicit change to RW is required. Keep up with this change, and use "-uw" to mount root read-write.
Notes
Notes: svn path=/head/; revision=153029
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/root2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/root b/etc/rc.d/root
index aeb9a980742c..162094c6cf85 100755
--- a/etc/rc.d/root
+++ b/etc/rc.d/root
@@ -23,7 +23,7 @@ root_start()
[Nn][Oo] | '')
;;
*)
- if ! mount -u -o rw /; then
+ if ! mount -uw /; then
echo 'Mounting root filesystem rw failed, startup aborted'
/bin/kill -QUIT $$
fi