Subject: Re: How do I build a bootable system?
To: None <tech-toolchain@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: tech-toolchain
Date: 03/26/2007 11:07:52
On Mon, 26 Mar 2007, der Mouse wrote:
> Okay, I give up.  How do I do this under the new world order?
> 
> I have a source tree.  I want to do a build from it and install the
> newly built system into a new disk mounted on, say, /mnt, such that
> adding a kernel and setting up my port's boot machinery gives me a
> bootable system.

I would use build.sh ... release, followed by unpacking
${RELEASEDIR}/${ARCH}/binary/sets/*.tgz

> How do I do this?  My best guess so far has been
> 
> % build.sh -D ... -O ... -U distribution
> # build.sh -D ... -O ... -U -u -V TOOLDIR=... install=/mnt
> 
> but that leaves me with nothing but directory structure in /mnt/etc,
> except for /mnt/etc/release and some files in /mnt/etc/mtree/ - and an
> empty /dev, which init apparently doesn't know how to fix because
> there's no /etc/MAKEDEV.

If that didn't work, I think it's a bug, but I never use build.sh
install=..., so don't take my word for it.

--apb (Alan Barrett)