diff options
authorGiorgos Keramidas <keramida@FreeBSD.org>2004-10-28 13:59:44 +0000
committerGiorgos Keramidas <keramida@FreeBSD.org>2004-10-28 13:59:44 +0000
commit2b44df41d5b187932f6a466e182f6e18051d19b7 (patch)
parenta424f330df6240e5934ca0f3cb197cc016f5b7df (diff)
MFC: etc/defaults/rc.conf 1.226
share/man/man5/rc.conf.5 1.229, 1.230 : Introduce root_rw_mount as a new variable in defaults/rc.conf to : unbreak /etc/rc.d/root for diskless systems that get their root : filesystem from a read-only NFS mount. : : PR: conf/72927 : Submitted by: Ralf Wenk <RZ-FreeBSD1004@fh-karlsruhe.de> : Reviewed by: brooks Approved by: re (kensmith)
Notes: svn path=/releng/5.3/; revision=137014
2 files changed, 15 insertions, 1 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index f33d957ef9c2..5ad32388046d 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -55,6 +55,7 @@ gbde_lockdir="/etc" # Where to look for gbde lockfiles
gbde_swap_enable="NO" # Set to YES to automatically initialize gbde swap
# devices listed in fstab with a random one-shot key
+root_rw_mount="YES" # Set to NO to inhibit remounting root read-write.
fsck_y_enable="NO" # Set to YES to do fsck -y if the initial preen fails.
background_fsck="YES" # Attempt to run fsck in the background where possible.
background_fsck_delay="60" # Time to wait (seconds) before starting the fsck.
diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5
index d7c25c0f40a0..cf7220baf73c 100644
--- a/share/man/man5/rc.conf.5
+++ b/share/man/man5/rc.conf.5
@@ -24,7 +24,7 @@
.\" $FreeBSD$
-.Dd September 29, 2004
+.Dd October 28, 2004
@@ -1093,6 +1093,19 @@ any .bde swap devices listed in
.Pa /etc/fstab
will be initialized with a random, one-shot key.
Note that this makes recovery of kernel dumps impossible.
+.It Va root_rw_mount
+.Pq Vt bool
+Set to
+.Dq Li YES
+by default.
+After the file systems are checked at boot time, the root filesystem
+is remounted as read-write if this is set to
+.Dq Li YES .
+Diskless systems that mount their filesystem from a read-only remote
+NFS share should set this to
+.Dq Li NO
+in their
+.Pa rc.conf .
.It Va fsck_y_enable
.Pq Vt bool
If set to