Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jan 2003 14:01:33 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        "Kevin Oberman" <oberman@es.net>
Cc:        Darren Pilgrim <dmp@pantherdragon.org>, freebsd-current@freebsd.org
Subject:   Re: How to build -current and install to empty slice?
Message-ID:  <xzpu1g6zk5u.fsf@flood.ping.uio.no>
In-Reply-To: <20030117231450.A441C5D04@ptavv.es.net> ("Kevin Oberman"'s message of "Fri, 17 Jan 2003 15:14:50 -0800")
References:  <20030117231450.A441C5D04@ptavv.es.net>

next in thread | previous in thread | raw e-mail | index | archive | help
"Kevin Oberman" <oberman@es.net> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpu1g6zk5u.fsf>