Subject: Re: how to install -current?
To: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
From: Luke Mewburn <firstname.lastname@example.org>
Date: 01/22/2003 21:51:52
On Wed, Jan 22, 2003 at 10:14:59AM +0100, Ronald van der Pol wrote:
| I have started to build unprived and it works fine. Both i386 on i386
| and sparc on i386. My sources and builddir are on an NFS server and
| I do:
| $ sh build.sh -u -D `pwd`/../build-i386 -T `pwd`/../tools-i386 -U
| $ sh build.sh -m sparc -u -D `pwd`/../build-sparc -T `pwd`/../tools-sparc -U
| $ sh build.sh -D `pwd`/../build-i386 -T `pwd`/../tools-i386 -U -k MYKERN
| (are -D and -U needed?)
Not really, but it pays to be consistent.
| $ chmod -R og+rX `pwd`/../build-i386 `pwd`/../tools-i386
| (I had to do this once because root couldn't read all the files over NFS)
This shouldn't be necessary any more, if your non root user builds
with umask 022. I changed mtree so that the default directory perms
are 0777 instead of 0700 (both modified by umask).
| On the target machine:
| # <install kernel and reboot>
| # make DESTDIR=$NFS_DIR/build-i386 TOOLDIR=$NFS_DIR/tools-i386 \
| UNPRIVED=yes installworld
| # TOOLDIR=$NFS_DIR/tools-i386 etcupdate -s $NFS_DIR/build-i386/etc
| (I think, I am not 100% sure. This is also not documented.)
| # reboot
| BTW, is "-O /usr/obj" needed? Isn't this the default?
It's not the default for MAKEOBJDIR, if you wish to use that behaviour
(which means you can use read-only source). (I personally use -M over
-O; your mileage may vary)