以靜默模式更新監獄 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。這些已經提供了處理更新監獄的自動化功能。

相關內容