diff options
author | keramida <keramida@FreeBSD.org> | 2004-11-09 10:03:17 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2004-11-09 10:03:17 +0000 |
commit | a9be34826611fd6d886a94488931a067b4f5ed2e (patch) | |
tree | 0a11e0afec881d2f75d5f712bf77d980818490ec /etc/rc.d | |
parent | 173ef4db9740ebfb9354f9d7fb956680520f0b62 (diff) | |
download | FreeBSD-src-a9be34826611fd6d886a94488931a067b4f5ed2e.zip FreeBSD-src-a9be34826611fd6d886a94488931a067b4f5ed2e.tar.gz |
Add two new rc.conf options: tmpmfs_flags and varmfs_flags.
These can be used to pass extra options to the mdmfs(8) utility,
to customize the finer details of the md file system creation
(i.e. to turn on/off softupdates, to specify a default owner for md
filesystem, etc).
Use these two new flags to mount tmpmfs and varmfs without
softupdates, since it doesn't make much sense to use SU on
malloc-backed file systems.
Reviewed by: mtm
Inspired by: J. D. Bronson, jbronson at wixb dot com
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/tmp | 4 | ||||
-rw-r--r-- | etc/rc.d/var | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp index 0c7a460..9b0d74b 100644 --- a/etc/rc.d/tmp +++ b/etc/rc.d/tmp @@ -42,7 +42,7 @@ load_rc_config $name # case "${tmpmfs}" in [Yy][Ee][Ss]) - mount_md ${tmpsize} /tmp + mount_md ${tmpsize} /tmp "${tmpmfs_flags}" chmod 01777 /tmp ;; [Nn][Oo]) @@ -56,7 +56,7 @@ case "${tmpmfs}" in echo "dropping into shell, ^D to continue anyway." /bin/sh else - mount_md ${tmpsize} /tmp + mount_md ${tmpsize} /tmp "${tmpmfs_flags}" chmod 01777 /tmp fi fi diff --git a/etc/rc.d/var b/etc/rc.d/var index 7a4baf4..1e506c0 100644 --- a/etc/rc.d/var +++ b/etc/rc.d/var @@ -61,7 +61,7 @@ _populate_var() # case "${varmfs}" in [Yy][Ee][Ss]) - mount_md ${varsize} /var + mount_md ${varsize} /var "${varmfs_flags}" ;; [Nn][Oo]) ;; @@ -69,7 +69,7 @@ case "${varmfs}" in if (/bin/mkdir -p /var/.diskless 2> /dev/null); then rmdir /var/.diskless else - mount_md ${varsize} /var + mount_md ${varsize} /var "${varmfs_flags}" fi esac |