From owner-freebsd-current Sun Jan 19 18:10:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFB6137B401 for ; Sun, 19 Jan 2003 18:10:33 -0800 (PST) Received: from lakemtao02.cox.net (lakemtao02.cox.net [68.1.17.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE92843E4A for ; Sun, 19 Jan 2003 18:10:32 -0800 (PST) (envelope-from ataraxia@cox.net) Received: from arkadia.nv.cox.net ([68.98.183.54]) by lakemtao02.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030120021030.FRCR6744.lakemtao02.cox.net@arkadia.nv.cox.net>; Sun, 19 Jan 2003 21:10:30 -0500 Received: by arkadia.nv.cox.net (Postfix, from userid 1001) id 0720A4; Sun, 19 Jan 2003 21:10:31 -0500 (EST) Date: Sun, 19 Jan 2003 21:10:31 -0500 From: Ray Kohler To: Darren Pilgrim Cc: freebsd-current@freebsd.org Subject: Re: How to build -current and install to empty slice? Message-ID: <20030120021031.GA41361@arkadia.nv.cox.net> References: <20030117231450.A441C5D04@ptavv.es.net> <3E2B4B61.2090603@pantherdragon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E2B4B61.2090603@pantherdragon.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Jan 19, 2003 at 05:05:37PM -0800, Darren Pilgrim wrote: > > How do tell make to use /5/usr/obj instead of /usr/obj? Will > MAKEOBJDIRPREFIX=/5/usr/obj do this? > > I have more questons: > > Can I force make to ignore /etc/make.conf and /etc/defaults/make.conf and > read another set of config files? Would it be safe to use > /5/usr/src/etc/defaults/make.conf? > > Will DESTDIR=/5 cause the new build tools to install under /5 as well, or > do I need to set something else to avoid having my 4.7p3 build tools > clobbered? > > So far I have this set of commands: > > # cd /5/usr/src && MAKEOBJDIRPREFIX=/5/usr/obj DESTDIR=/5 make buildworld > # MAKEOBJDIRPREFIX=/5/usr/obj DESTDIR=/5 make kernel > # MAKEOBJDIRPREFIX=/5/usr/obj DESTDIR=/5 make installworld > # cd /5/usr/src/etc && DESTDIR=/5 make distribution MAKEOBJDIRPREFIX is probably redundant here, but I don't know. > # cd /5/usr/src/release/sysinstall && make clean && make all install sysinstall now lives in usr/sbin, so it'll be taken care of by the regular build/installworld. > # install -o root -g wheel -m 0555 /5/usr/src/etc/MAKEDEV /5/dev/MAKEDEV > # cd /5/dev && ./MAKEDEV all ad4 ad4s2h ad4s3h ad4s4h ums1 vn1 vty16 Don't do these two, MAKEDEV isn't needed in 5.0, even though it still exists, and when DEVFS is mounted on /dev, this stuff will get lost anyway (and take up disk space). > # disklabel -B -b /mnt/boot/boot1 -s /mnt/boot/boot2 /dev/ad4s3 Don't you mean # disklabel -B -b /5/boot/boot1 -s /5/boot/boot2 /dev/ad4s3 ? -- Ray Kohler After living in New York, you trust nobody, but you believe everything. Just in case. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message