From owner-freebsd-questions@FreeBSD.ORG Fri Aug 1 19:28:20 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 E66D0106566B for ; Fri, 1 Aug 2008 19:28:20 +0000 (UTC) (envelope-from reddvinylene@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.191]) by mx1.freebsd.org (Postfix) with ESMTP id 6E4628FC15 for ; Fri, 1 Aug 2008 19:28:20 +0000 (UTC) (envelope-from reddvinylene@gmail.com) Received: by mu-out-0910.google.com with SMTP id i2so848275mue.3 for ; Fri, 01 Aug 2008 12:28:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ZllS49iIS962iJST5DNhB19gZtiXESGIMMUxuwfHcTE=; b=G85KQYGG97PrO1Cy5RcOv44FiiRAjlUkn/PvRY7Vmjv0f6YpO/T1HW7HV6xYfK4ZKE SrfSNsXcRRHVjWKZuJglFJ0bm77P6cnoMaCD4R+syro1I30pT+VgjK9JbXSjJJeIyKiQ sYlTXdiNCydzuXiOxAbvOBlkVbqzgHs3CmtRU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=CDeXrZWuyZW/3Eudu5wlK6KhchXm0HecyYNIMGOHiwt65krN/UsCrMWVQmM5E6Kpx0 g/8fWYLain26aKLFdAtnPgoRiXQD4VkGDLDcqSTlKBQ1IQRDFrvurjkiNWKGkAhXD1IQ tRmC7T7gsQPTk0t5cRXZMfJ+xph3DaCWxh8a4= Received: by 10.102.228.2 with SMTP id a2mr4476133muh.79.1217618898563; Fri, 01 Aug 2008 12:28:18 -0700 (PDT) Received: by 10.103.199.5 with HTTP; Fri, 1 Aug 2008 12:28:18 -0700 (PDT) Message-ID: Date: Fri, 1 Aug 2008 21:28:18 +0200 From: "Redd Vinylene" To: "Miroslav Lachman" <000.fbsd@quip.cz>, questions@freebsd.org In-Reply-To: <48935D68.2080603@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48935D68.2080603@quip.cz> Cc: 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:28:21 -0000 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 >