From owner-freebsd-questions@FreeBSD.ORG Wed Jun 1 20:44:40 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 459BC106564A for ; Wed, 1 Jun 2011 20:44:40 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (mail1.sourcehosting.net [74.205.51.45]) by mx1.freebsd.org (Postfix) with ESMTP id 196CF8FC13 for ; Wed, 1 Jun 2011 20:44:39 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1QRsDq-0009Bu-9u; Wed, 01 Jun 2011 16:41:02 -0400 Received: from v104.entropy.prv (v104.entropy.prv [192.168.1.104]) by cube.entropy.prv (Postfix) with ESMTP id 4ACBB4EB4822; Wed, 1 Jun 2011 16:44:34 -0400 (EDT) Message-ID: <4DE6A4B1.70105@FreeBSD.org> Date: Wed, 01 Jun 2011 16:44:33 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Aleksandr Miroslav References: <4DE63A9D.2090509@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.1.1 OpenPGP: id=1C940290 X-SA-Exim-Connect-IP: 68.189.245.235 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: *** X-Spam-Status: No, score=3.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_RP_RNBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,SARE_SUB_OBFU_OTHER, TVD_RCVD_IP autolearn=no version=3.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: freebsd-questions@freebsd.org Subject: Re: src upgrading jails (no ezjail, no "service" jails) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2011 20:44:40 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 6/1/11 3:36 PM, Aleksandr Miroslav wrote: > On Wed, Jun 1, 2011 at 9:11 AM, Greg Larkin wrote: >>> I have 4 jails that are running 8.2-RELEASE that I would like to >>> upgrade. >>> >>> I did not create the jails using ezjails >>> I did not create the jails using the "template" method >> >> You can do this: >> cd /usr/src >> make installworld DESTDIR= >> make distribution DESTDIR= > > Would this not overwrite the data I already had in the existing jails? > > Also, presumably, I would have to run mergemaster in jail after doing > this, correct? > > Alex Hi Alex, Those commands will update the base system in the jail directory "jaildir1" with the latest bits that were previously compiled with "make buildworld". I don't believe they will disturb any other data in /usr/local, if that's what you are concerned about. Yes, you will also need to run mergemaster - I forgot about that step. You can run it outside of the jail in question if you use the "-D" option. I use ezjail here, and it will automate a lot of these steps for you. Is there a reason that you can't use it? Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3mpLEACgkQ0sRouByUApDi/gCeJ7Bdcs+R3bzKqL029M3nIZFV 1psAoKcSsfvhC+ydizhfH35G2gz8nOZA =cg9H -----END PGP SIGNATURE-----