From owner-freebsd-current Sun Jan 19 17: 5:42 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 CA42537B401 for ; Sun, 19 Jan 2003 17:05:40 -0800 (PST) Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 380CB43EB2 for ; Sun, 19 Jan 2003 17:05:40 -0800 (PST) (envelope-from dmp@pantherdragon.org) Received: from sparx.techno.pagans (12-224-208-117.client.attbi.com [12.224.208.117]) by spork.pantherdragon.org (Postfix) with ESMTP id B02571005F; Sun, 19 Jan 2003 17:05:39 -0800 (PST) Received: from pantherdragon.org (speck.techno.pagans [172.21.42.2]) by sparx.techno.pagans (Postfix) with ESMTP id 21B53AA8F; Sun, 19 Jan 2003 17:05:38 -0800 (PST) Message-ID: <3E2B4B61.2090603@pantherdragon.org> Date: Sun, 19 Jan 2003 17:05:37 -0800 From: Darren Pilgrim User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dag-Erling Smorgrav Cc: Kevin Oberman , freebsd-current@freebsd.org Subject: Re: How to build -current and install to empty slice? References: <20030117231450.A441C5D04@ptavv.es.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Dag-Erling Smorgrav wrote:> "Kevin Oberman" writes: > >>The first question is a bit tougher. > > > Not at all. Just prepare the slice so that it contains at least an > 'a' partition (so you can boot from it), mount the fresh partitions in > the correct places in relation to eachother (e.g. ad0s2a on /mnt, > ad0s2d on /mnt/var, ad0s2e on /mnt/usr), then install 5.0 on the > appropriate partitions. There are a number of ways to do the latter: > > - if you have successfully built a 5.0 world, do an installworld with > DESTDIR set to the root of the empty partitions (/mnt in our > example). Then go into the 'etc' directory in your 5.0 source tree > and do 'make distribution', again with DESTDIR set to the root of > the appropriate partitions. You will also need to build and > install a kernel, and install the first- and second-stage loaders > (using disklabel -B); the 4.x loaders should work fine, but you can > force disklabel to use the 5.0 loaders: > > # disklabel -B -b /mnt/boot/boot1 -s /mnt/boot/boot2 ad0s2 [For reference, I moved the base mountpoint to /5.] 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 # cd /5/usr/src/release/sysinstall && make clean && make all install # 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 # disklabel -B -b /mnt/boot/boot1 -s /mnt/boot/boot2 /dev/ad4s3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message