자동 모드에서 감옥 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.

감옥을 자동화하고 싶다면 ezjail및 같은 모든 감옥 관리 사항을 자세히 살펴보는 것이 좋습니다 qjail. 이들은 이미 감옥 업데이트를 자동으로 처리하는 기능을 제공합니다.

관련 정보