diff options
author | jamie <jamie@FreeBSD.org> | 2015-02-06 17:54:53 +0000 |
---|---|---|
committer | jamie <jamie@FreeBSD.org> | 2015-02-06 17:54:53 +0000 |
commit | 6064614ca50b8b6311bd60d1f85c0dcba8ef8954 (patch) | |
tree | 9e8cccaf8029958ef0dcf0ee5eb814aeb4b1f65b /etc/rc.d/jail | |
parent | 7bd92dacb8d7f8dabe4266e8eaa7c14c339b09e4 (diff) | |
download | FreeBSD-src-6064614ca50b8b6311bd60d1f85c0dcba8ef8954.zip FreeBSD-src-6064614ca50b8b6311bd60d1f85c0dcba8ef8954.tar.gz |
Add mount.procfs jail parameter, so procfs can be mounted when a prison's
root is in its fstab.
Also fix a typo while I'm at it.
PR: 197237 197066
MFC after: 3 days
Diffstat (limited to 'etc/rc.d/jail')
-rwxr-xr-x | etc/rc.d/jail | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/rc.d/jail b/etc/rc.d/jail index 0b886fd..ea62f48 100755 --- a/etc/rc.d/jail +++ b/etc/rc.d/jail @@ -28,7 +28,7 @@ extra_commands="config console status" need_dad_wait= -# extact_var jail name param num defval +# extract_var jail name param num defval # Extract value from ${jail_$jail_$name} or ${jail_$name} and # set it to $param. If not defined, $defval is used. # When $num is [0-9]*, ${jail_$jail_$name$num} are looked up and @@ -233,8 +233,7 @@ parse_options() fi eval : \${jail_${_j}_procfs_enable:=${jail_procfs_enable:-NO}} if checkyesno jail_${_j}_procfs_enable; then - echo " mount += " \ - "\"procfs ${_rootdir%/}/proc procfs rw 0 0\";" + echo " mount.procfs;" fi eval : \${jail_${_j}_mount_enable:=${jail_mount_enable:-NO}} |