Building/installing world/kernel on leaf [was Re: HEAD broken at the moment?]

Chris Pressey cpressey at catseye.mine.nu
Mon Apr 11 13:33:00 PDT 2005


On Sat, 9 Apr 2005 20:24:08 +0900
YONETANI Tomokazu <qhwt+dfly at xxxxxxxxxx> wrote:

> On Fri, Apr 08, 2005 at 08:29:24PM -0700, Chris Pressey wrote:
> > This worked for me:
> > 
> >   env MAKEOBJDIRPREFIX=/home/cpressey/root/usr/obj make buildworld
> > 
> > Haven't figured out how to make a fake, as-non-root-user installworld
> > happen yet, though.  This mess:
> > 
> >   env MAKEOBJDIRPREFIX=/home/cpressey/root/usr/obj make \
> >       SHAREOWN=cpressey SHAREGRP=2011 \
> >       INSTALL="sh `pwd`/tools/install.sh" \
> >       DESTDIR=/home/cpressey/root installworld
> > 
> > gets me as far as I have gotten so far, but it chokes on trying to use
> > "install-info" from within lib/libcom_err/doc, which (presumably) fails
> > while trying to chgrp and chown what it's installing, as a normal user
> > (me.)
> 
> Ok, update src/tools/install.sh to 1.4 and try the following:
> $ me=`id -nu`; us=`id -gn`; root=$HOME/root
> $ env - \
>     __MAKE_CONF=/dev/null \
>     MAKEOBJDIRPREFIX=$root/usr/obj \
>     KERNCONFDIR=/where/you/keep/config/files \
>     KERNCONF=YOURCONFIG \
>   make buildworld buildkernel
> 
> $ env - \
>     __MAKE_CONF=/dev/null \
>     DESTDIR=$root \
>     MAKEOBJDIRPREFIX=$root/usr/obj \
>     KERNCONFDIR=/where/you/keep/config/files \
>     KERNCONF=YOURCONFIG \
>     INSTALL="sh `pwd`/tools/install.sh" \
>     BINOWN=$me BINGRP=$us SHAREOWN=$me SHAREGRP=$us \
>  make installworld installkernel

Works like a charm, thanks!  I'll note this on the wiki shortly.

-Chris





More information about the Kernel mailing list