以静默模式更新监狱 FreeBSD

以静默模式更新监狱 FreeBSD

如果我想将所有进程添加到 cron 中怎么办?有没有静默升级监狱的方法?

完成这些步骤后:

# make buildworld       
# make installworld DESTDIR=/jails/somejail

是时候:

# mergemaster -Ui -D /jails/somejail

如何自动化这个过程,因为在此操作期间提出这么多问题(意味着合并大师)?我希望我的所有配置文件保持不变。

答案1

保持所有配置文件不变可能是一件危险的事情。因此,我建议不要这样做。也就是说,mergemaster 有一个选项可以自动处理所有事情。从mergemaster(8)联机帮助页:

-a     Run automatically.  This option will leave all the files that
       differ from the installed versions in the temporary directory
       to be dealt with by hand.  If the temproot directory exists,
       it creates a new one in a previously non-existent directory.
       This option unsets the verbose flag, and is not compatible
       with -i, -F, or -U.  Setting -a makes -w superfluous.

如果您想自动处理监狱,那么您可能需要仔细查看所有监狱管理事物,例如ezjailqjail。这些已经提供了自动处理更新监狱的功能。

相关内容