diff options
author | yar <yar@FreeBSD.org> | 2005-08-24 16:25:47 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2005-08-24 16:25:47 +0000 |
commit | 473f777e4d124b4ed88d3eb95798889f5570e7f4 (patch) | |
tree | c57083ea09c886913a06ce044bc20c6926386206 /etc | |
parent | a32dd5a1510abc8ffe97a9cbea2c32b28dc891bd (diff) | |
download | FreeBSD-src-473f777e4d124b4ed88d3eb95798889f5570e7f4.zip FreeBSD-src-473f777e4d124b4ed88d3eb95798889f5570e7f4.tar.gz |
Stop hard-coding an -M flag to mdmfs(8) in /etc/rc.subr.
Now this flag can be set, or not set, for memory-backed
file systems on individual basis, as illustrated by the
rc.conf(5) variables tmpmfs_flags and varmfs_flags. The
flag is set for those FS'en by default, in /etc/defaults/rc.conf,
in order to stay compatible with the old rc.subr behaviour.
Submitted by: marck
MFC after: 3 days
Diffstat (limited to 'etc')
-rw-r--r-- | etc/defaults/rc.conf | 4 | ||||
-rw-r--r-- | etc/rc.subr | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index b6e2318..e54540f 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -43,10 +43,10 @@ powerd_flags="" # Flags to powerd (if enabled). removable_route_flush="YES" # Flush routes when removing an interface tmpmfs="AUTO" # Set to YES to always create an mfs /tmp, NO to never tmpsize="20m" # Size of mfs /tmp if created -tmpmfs_flags="-S" # Extra mdmfs options for the mfs /tmp +tmpmfs_flags="-S -M" # Extra mdmfs options for the mfs /tmp varmfs="AUTO" # Set to YES to always create an mfs /var, NO to never varsize="32m" # Size of mfs /var if created -varmfs_flags="-S" # Extra mount options for the mfs /var +varmfs_flags="-S -M" # Extra mount options for the mfs /var populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs. script_name_sep=" " # Change if your startup scripts' names contain spaces diff --git a/etc/rc.subr b/etc/rc.subr index e70fffb..94944ab 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -1294,7 +1294,7 @@ mount_md() if [ -n "$3" ]; then flags="$3" fi - /sbin/mdmfs $flags -s $1 -M md $2 + /sbin/mdmfs $flags -s $1 md $2 } # ltr str src dst |