diff options
author | hrs <hrs@FreeBSD.org> | 2014-09-04 22:00:52 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2014-09-04 22:00:52 +0000 |
commit | b3e65adf91ff2b52bad7965ac75d0bae3b8e4be1 (patch) | |
tree | e7a45d4ab55cbc1f9291feb8fff8c846f509cf64 /etc/rc.d | |
parent | 714c76939dde60292a6712472b3b85c53292e3c1 (diff) | |
download | FreeBSD-src-b3e65adf91ff2b52bad7965ac75d0bae3b8e4be1.zip FreeBSD-src-b3e65adf91ff2b52bad7965ac75d0bae3b8e4be1.tar.gz |
Fix a bug which prevented mount.fstab parameter from being converted
when jail_JID_devfs_enable=NO.
Spotted by: peter
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-x | etc/rc.d/jail | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.d/jail b/etc/rc.d/jail index 75f3775..cf1c6e2 100755 --- a/etc/rc.d/jail +++ b/etc/rc.d/jail @@ -207,6 +207,10 @@ parse_options() extract_var $_j consolelog exec.consolelog - \ /var/log/jail_${_j}_console.log + if [ -r $_fstab ]; then + echo " mount.fstab = \"$_fstab\";" + fi + eval : \${jail_${_j}_devfs_enable:=${jail_devfs_enable:-NO}} if checkyesno jail_${_j}_devfs_enable; then echo " mount.devfs;" @@ -222,11 +226,7 @@ parse_options() ;; *) warn "devfs_ruleset must be an integer." ;; esac - if [ -r $_fstab ]; then - echo " mount.fstab = \"$_fstab\";" - fi fi - eval : \${jail_${_j}_fdescfs_enable:=${jail_fdescfs_enable:-NO}} if checkyesno jail_${_j}_fdescfs_enable; then echo " mount.fdescfs;" |