From owner-freebsd-questions@FreeBSD.ORG Fri Aug 1 19:18:23 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB0DD106566B for ; Fri, 1 Aug 2008 19:18:23 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [91.103.162.4]) by mx1.freebsd.org (Postfix) with ESMTP id 971F78FC17 for ; Fri, 1 Aug 2008 19:18:23 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id B346719E023; Fri, 1 Aug 2008 21:00:33 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 6EC1119E019; Fri, 1 Aug 2008 21:00:31 +0200 (CEST) Message-ID: <48935D68.2080603@quip.cz> Date: Fri, 01 Aug 2008 21:00:56 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Redd Vinylene References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org, questions@freebsd.org Subject: Re: The best way to upgrade my FreeBSD and its jails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2008 19:18:23 -0000 Redd Vinylene wrote: > My dedicated server is mother, its two jails are camel and box. Is > this the best way to upgrade all of them? > > Pretty cool huh? > > - > > # FreeBSD/i386 mother.reddvinylene.no > > csup /etc/cvsupfile && \ > > cd /usr/src && \ > > make buildworld && \ > > make buildkernel && \ > > make installworld && \ > > make installkernel && \ > > make delete-old && \ > > make delete-old-libs && \ > > mergemaster -U&& \ > > export D=/usr/jail/camel && \ > > make installworld DESTDIR=$D && \ > > make installworld installkernel DESTDIR=$D && \ > > make delete-old DESTDIR=$D && \ > > make delete-old-libs DESTDIR=$D && \ > > cd etc/ && \ > > make distribution DESTDIR=$D && \ > > cd .. && \ > > mergemaster -U -D $D && \ > > export D=/usr/jail/box && \ > > make installworld DESTDIR=$D && \ > > make installworld installkernel DESTDIR=$D && \ > > make delete-old DESTDIR=$D && \ > > make delete-old-libs DESTDIR=$D && \ > > cd etc/ && \ > > make distribution DESTDIR=$D && \ > > cd .. && \ > > mergemaster -U -D $D && \ > > chflags -R noschg /usr/obj/* && \ > > rm -rf /usr/obj/* It would be better if you post what version you are running and to what version you want to update / upgrade. If you want to use some RELEASE, you can user freebsd-update command for binary update of base and jails. Also it is not good to do all the above steps as one chained command. Miroslav Lachman