From owner-freebsd-questions@FreeBSD.ORG Mon Jan 10 12:55:30 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1308316A4CE for ; Mon, 10 Jan 2005 12:55:30 +0000 (GMT) Received: from chello084114137224.1.15.vie.surfer.at (chello084114137224.1.15.vie.surfer.at [84.114.137.224]) by mx1.FreeBSD.org (Postfix) with SMTP id 9D68F43D2F for ; Mon, 10 Jan 2005 12:55:28 +0000 (GMT) (envelope-from 4711@chello.at) Received: (qmail 48480 invoked from network); 10 Jan 2005 12:55:26 -0000 Received: from matrix010.matrix.net (192.168.123.10) by ns.matrix.net with SMTP; 10 Jan 2005 12:55:26 -0000 From: Christian Hiris <4711@chello.at> To: freebsd-questions@freebsd.org Date: Mon, 10 Jan 2005 13:55:11 +0100 User-Agent: KMail/1.7 References: <1105307890.1371.42.camel@compass.straycat.dhs.org> In-Reply-To: <1105307890.1371.42.camel@compass.straycat.dhs.org> Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501101355.26254.4711@chello.at> cc: Tom McLaughlin Subject: Re: Updating a running jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 12:55:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 09 January 2005 22:58, Tom McLaughlin wrote: [...] > My next idea is to use a script on the jailhost which carries out the > steps for building a jail from the manpage and essentially installing > over the old jail. I just wonder how that will affect /etc within the > jail. I want many of the changes to /etc that occur in -stable but I > don't want to overwrite all the changes I have made. I guess I could > skip `make distribution' and run mergemaster later. How I update my jails: 1. cvsup sources 2. make buildworld and buildkernel (to update host) 3. make installkernel, make installworld and mergemaster (to update host) 4. cd /usr/src && make installworld DESTDIR=/your_jail_root_here (run from host to update jail) 5. mergemaster -D /your_jail_root_here (run from host to update jail) > My last idea is to mount the jailhost's /usr/src and /usr/obj > directories into the jail with nullfs and then after having run > buildworld on the jailhost, run installworld in the jail and then use > mergemaster to take care of /etc within the jail. I've used a similar > process to update OpenBSD machines over NFS but have never tried it on > FreeBSD. Normally you don't need the /usr/obj tree in your jail. However, some ports need a set of /usr/src to compile. I for myself prefer to have independent sets of /usr/src and /usr/ports inside my jails, so I also run cvsup inside my jails. Cheers, ch - -- Christian Hiris <4711@chello.at> | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB4ns+09WjGjvKU74RArVyAJ9M4ZQ0yPUH+d3K6Yypq8TIO5Sk7wCeNDm1 F+/B+5/izJFAwBpaM1dvQWI= =+jY4 -----END PGP SIGNATURE-----