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
This commit is contained in:
Yaroslav Tykhiy 2005-08-24 16:25:47 +00:00
parent f373a82454
commit 4986c6d8e2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149421
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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