From owner-freebsd-current Sat Jan 18 5: 1:40 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 A86EA37B401 for ; Sat, 18 Jan 2003 05:01:38 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE5A343E4A for ; Sat, 18 Jan 2003 05:01:37 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id F0D105374; Sat, 18 Jan 2003 14:01:34 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Kevin Oberman" Cc: Darren Pilgrim , freebsd-current@freebsd.org Subject: Re: How to build -current and install to empty slice? References: <20030117231450.A441C5D04@ptavv.es.net> From: Dag-Erling Smorgrav Date: Sat, 18 Jan 2003 14:01:33 +0100 In-Reply-To: <20030117231450.A441C5D04@ptavv.es.net> ("Kevin Oberman"'s message of "Fri, 17 Jan 2003 15:14:50 -0800") Message-ID: Lines: 41 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386--freebsd) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 "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 - if you have a copy of e.g. RC3 on cdrom (you can also just download the ISO, vnconfig it, and mount the vn device), you can cd into the directories for the distributions you want and run install.sh from there. You'll need at least "base"; with just "base" installed you will be able to boot, configure your network interface, pkg_add -r cvsup, get the sources and make world to get the rest, or use sysinstall to install the rest from CD-ROM or an FTP server. # vnconfig -c vn0c rc3.iso # mount -t cd9660 /dev/vn0c /cdrom # cd /cdrom/base # env DESTDIR=/mnt sh install.sh You are about to extract the base distribution into /mnt - are you SURE you want to do this over your installed system (y/n)? y Remember to copy or rename "kernel.GENERIC" to "kernel", and install the boot loaders as described above. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message