Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Dec 2002 10:06:10 -0800
From:      Kent Stewart <kstewart@owt.com>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>, Thomas Spreng <spreng@socket.ch>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: how to change installworld installation root directory?
Message-ID:  <200212181006.10826.kstewart@owt.com>
In-Reply-To: <20021218141259.GD4032@gothmog.gr>
References:  <Pine.A41.4.10.10212171740040.45200-100000@bessel.tekniikka.turkuamk.fi> <20021218083529.GA15130@rock.stable.ch> <20021218141259.GD4032@gothmog.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 18 December 2002 06:12 am, Giorgos Keramidas wrote:
> On 2002-12-18 09:35, Thomas Spreng <spreng@socket.ch> wrote:
> > On Tue, Dec 17, 2002 at 05:50:07PM -0800, Kent Stewart wrote:
> > > On Tuesday 17 December 2002 07:51 am, Matthew Seaman wrote:
> > > >     make installworld DESTDIR=3D/mnt
> > > >
> > > > installs everything relative to /mnt instead of / --- see
> > > > jail(8) for some examples of doing just that.
> > >
> > > What I do is create /usr/src and /usr/obj as their own 1.5 GB
> > > partitions. That is 4-5x larger than I need. Then, I can
> > > NFS_mount them on any system as /usr/src and /usr/obj. You don't
> > > have to play games with names, DESTDIR, or etc.
> >
> > why would you want /usr/obj nfs mounted as well?
>
> Because "make installworld" will find any compiled programs under
> that path, and copy them to their destination.  /usr/src doesn't
> contain executables or libraries[1].  The sources from /usr/src are
> compiled to executables and saved under /usr/obj.

This also works for the kernel. I name them for the short name used in=20
/etc/hosts and I can "buildkernel KERNCONF=3DCORAL" on RUBY and do the=20
installkernel and installworld on CORAL. If you have all 3 config files=20
on ruby, you can add=20
"KERNCONF=3DRUBY GENERIC CORAL"=20
to ruby's /etc/make.conf, all 3 will be built on ruby. Since RUBY is=20
1st, a "make kernel" will build all 3 but install RUBY.

>
> If you don't have machines of completely different architectures, you
> can buildworld once, then mount /usr/obj and /usr/src as many times
> as you want and install the same userland/kernel to a lot of
> machines.

I have modified a computer and mismounted 2 IDE drives when I was=20
reassemblying it. There were links that were apparently broken. I=20
swapped them back but still couldn't do a builds after that. So, I just=20
mounted the the 2 file systems from a running system and did the=20
installs. I could do builds once more. I think I needed 15-20 minutes=20
from the time I figured out what was wrong and had done the buildkernel=20
for the sick computer to having a consistant running system. The=20
installworld took a wee bit longer than the 4 minutes it usually takes=20
but it worked.

Kent

--=20
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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