Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Aug 2008 21:00:56 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Redd Vinylene <reddvinylene@gmail.com>
Cc:        freebsd-jail@freebsd.org, questions@freebsd.org
Subject:   Re: The best way to upgrade my FreeBSD and its jails
Message-ID:  <48935D68.2080603@quip.cz>
In-Reply-To: <f1019d520808011028m64b73f93o9e4703375c65a8cb@mail.gmail.com>
References:  <f1019d520808011028m64b73f93o9e4703375c65a8cb@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48935D68.2080603>