From owner-freebsd-questions Wed Dec 18 10:11:46 2002 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 5CADB37B401 for ; Wed, 18 Dec 2002 10:11:44 -0800 (PST) Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCD8A43EDE for ; Wed, 18 Dec 2002 10:11:43 -0800 (PST) (envelope-from kstewart@owt.com) Received: from owt-207-41-94-233.owt.com (owt-207-41-94-233.owt.com [207.41.94.233]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id KAA30034; Wed, 18 Dec 2002 10:06:11 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Kent Stewart To: Giorgos Keramidas , Thomas Spreng Subject: Re: how to change installworld installation root directory? Date: Wed, 18 Dec 2002 10:06:10 -0800 User-Agent: KMail/1.4.3 Cc: freebsd-questions@FreeBSD.ORG References: <20021218083529.GA15130@rock.stable.ch> <20021218141259.GD4032@gothmog.gr> In-Reply-To: <20021218141259.GD4032@gothmog.gr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212181006.10826.kstewart@owt.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wednesday 18 December 2002 06:12 am, Giorgos Keramidas wrote: > On 2002-12-18 09:35, Thomas Spreng wrote: > > On Tue, Dec 17, 2002 at 05:50:07PM -0800, Kent Stewart wrote: > > > On Tuesday 17 December 2002 07:51 am, Matthew Seaman wrote: > > > > make installworld DESTDIR=3D/mnt > > > > > > > > installs everything relative to /mnt instead of / --- see > > > > jail(8) for some examples of doing just that. > > > > > > What I do is create /usr/src and /usr/obj as their own 1.5 GB > > > partitions. That is 4-5x larger than I need. Then, I can > > > NFS_mount them on any system as /usr/src and /usr/obj. You don't > > > have to play games with names, DESTDIR, or etc. > > > > why would you want /usr/obj nfs mounted as well? > > Because "make installworld" will find any compiled programs under > that path, and copy them to their destination. /usr/src doesn't > contain executables or libraries[1]. The sources from /usr/src are > compiled to executables and saved under /usr/obj. This also works for the kernel. I name them for the short name used in=20 /etc/hosts and I can "buildkernel KERNCONF=3DCORAL" on RUBY and do the=20 installkernel and installworld on CORAL. If you have all 3 config files=20 on ruby, you can add=20 "KERNCONF=3DRUBY GENERIC CORAL"=20 to ruby's /etc/make.conf, all 3 will be built on ruby. Since RUBY is=20 1st, a "make kernel" will build all 3 but install RUBY. > > If you don't have machines of completely different architectures, you > can buildworld once, then mount /usr/obj and /usr/src as many times > as you want and install the same userland/kernel to a lot of > machines. I have modified a computer and mismounted 2 IDE drives when I was=20 reassemblying it. There were links that were apparently broken. I=20 swapped them back but still couldn't do a builds after that. So, I just=20 mounted the the 2 file systems from a running system and did the=20 installs. I could do builds once more. I think I needed 15-20 minutes=20 from the time I figured out what was wrong and had done the buildkernel=20 for the sick computer to having a consistant running system. The=20 installworld took a wee bit longer than the 4 minutes it usually takes=20 but it worked. Kent --=20 Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message