使用时,我对以下警告有疑问 FreeBSD 10.2上的Ezjail-3.4.1 /etc/rc.d/jail:警告:通过jail_ * var进行Per-jail配置“在这里输入代码”iables已经过时了。请考虑迁移到/etc/jail.conf“在这里输入代码”我的理解是在FreeBSD 9.0中已经改变了但是从10.2开始,新方法是默认方法并且正在生成警告。我还没能够要在谷歌上找到关于此的任何信息,很多用户提到错误但忽略了它们,因为他们的jail仍在工作.AFAIK 10.0中的rc.d / jail脚本转换旧式jail_ 变量进入临时jail.conf来处理jail。所以警告 由rc.d / jail生成
此致 Mr-Hill
答案 0 :(得分:2)
正如您所发现的,FreeBSD 10.x上的jails使用了一种新的配置方法。 From /usr/src/UPDATING
:
20131010:
The rc.d/jail script has been updated to support jail(8)
configuration file. The "jail_<jname>_*" rc.conf(5) variables
for per-jail configuration are automatically converted to
/var/run/jail.<jname>.conf before the jail(8) utility is invoked.
This is transparently backward compatible. See below about some
incompatibilities and rc.conf(5) manual page for more details.
These variables are now deprecated in favor of jail(8) configuration
file. One can use "rc.d/jail config <jname>" command to generate
a jail(8) configuration file in /var/run/jail.<jname>.conf without
running the jail(8) utility. The default pathname of the
configuration file is /etc/jail.conf and can be specified by
using $jail_conf or $jail_<jname>_conf variables.
Please note that jail_devfs_ruleset accepts an integer at
this moment. Please consider to rewrite the ruleset name
with an integer.
ezjail是never updated to use this new method,但没关系:FreeBSD仍然接受以前的方法。你可以忽略这个警告。