From owner-freebsd-questions Wed Dec 18 6:35:38 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 557D037B401 for ; Wed, 18 Dec 2002 06:35:37 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4388C43EDE for ; Wed, 18 Dec 2002 06:35:34 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b194.otenet.gr [212.205.244.202]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id gBIEZPCh025518 for ; Wed, 18 Dec 2002 16:35:29 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id gBIEZO5B008462 for ; Wed, 18 Dec 2002 16:35:25 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id gBIED0at008088; Wed, 18 Dec 2002 16:13:00 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 18 Dec 2002 16:12:59 +0200 From: Giorgos Keramidas To: Thomas Spreng Cc: freebsd-questions@freebsd.org Subject: Re: how to change installworld installation root directory? Message-ID: <20021218141259.GD4032@gothmog.gr> References: <20021217155100.GB34511@happy-idiot-talk.infracaninophi> <200212171750.07541.kstewart@owt.com> <20021218083529.GA15130@rock.stable.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021218083529.GA15130@rock.stable.ch> 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 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=/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. 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. - Giorgos [1] Not 100% true, but if you follow the recommended instructions for doing upgrades through source, this is what happens. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message