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

next in thread | previous in thread | raw e-mail | index | archive | help
Whatever version you know, right now it's an old 7.0-STABLE to a newer
7.0-STABLE.

Improved the script a little though: http://pastie.org/245821

Enjoy!

On Fri, Aug 1, 2008 at 9:00 PM, Miroslav Lachman <000.fbsd@quip.cz> wrote:
> 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?f1019d520808011228g33900c66p998694a90df8217>