Subject: Re: Wrong permissions?
To: current-users@netbsd.org, Andrew Brown <atatat@atatdot.net>
From: Ossi Herrala <oherrala@ee.oulu.fi>
List: current-users
Date: 03/29/2003 14:44:25
On Fri, Mar 28, 2003 at 01:15:06PM -0500, Andrew Brown wrote:
> >>./build.sh -D /usr/dist -U install=/
> >
> indeed.  i don't know for sure, but i am suspecting that the -U is
> what's fouling things up for you when things are installed.  try
> again, as root, but without that flag?
> 

From /usr/src/BUILDING:

     3.   # ./build.sh -U -D /path/to/destdir install=/

          As root, install to / the distribution that was built by example 2.
          Even though this is run as root, -U is required so that the permis-
          sions stored in /path/to/destdir/METALOG are correctly applied to
          the files as they're copied to /.


I do my builds with following commands:

   ./build.sh -M/usr/obj -T/usr/tools -D/usr/NetBSD/dest -rU tools
   ./build.sh -M/usr/obj -T/usr/tools -D/usr/NetBSD/dest -uU build
   ./build.sh -M/usr/obj -T/usr/tools -D/usr/NetBSD/dest -uU kernel=TXPO
   Install kernel with cp
   ./build.sh -M/usr/obj -T/usr/tools -D/usr/NetBSD/dest -uU install=/
 
1. line have -r to "Remove contents of TOOLDIR and DESTDIR before
building" and -U for "build without requiring root privileges". 2. and 3.
lines have -u so that ./build.sh "do not run "make clean" first" and -U to
build unprived.

I once made install without -U and it was succesfully but all file
permissions vanished. :)


-- 
Ossi Herrala
Personal PGP key at http://stekt.oulu.fi/~oherrala/pgp.asc