Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jan 2003 21:10:31 -0500
From:      Ray Kohler <ataraxia@cox.net>
To:        Darren Pilgrim <dmp@pantherdragon.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: How to build -current and install to empty slice?
Message-ID:  <20030120021031.GA41361@arkadia.nv.cox.net>
In-Reply-To: <3E2B4B61.2090603@pantherdragon.org>
References:  <20030117231450.A441C5D04@ptavv.es.net> <xzpu1g6zk5u.fsf@flood.ping.uio.no> <3E2B4B61.2090603@pantherdragon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ataraxia@cox.net>
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




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