Subject: Re: Wrong permissions?
To:, Andrew Brown <>
From: Ossi Herrala <>
List: current-users
Date: 03/29/2003 14:44:25
On Fri, Mar 28, 2003 at 01:15:06PM -0500, Andrew Brown wrote:
> >>./ -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.   # ./ -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:

   ./ -M/usr/obj -T/usr/tools -D/usr/NetBSD/dest -rU tools
   ./ -M/usr/obj -T/usr/tools -D/usr/NetBSD/dest -uU build
   ./ -M/usr/obj -T/usr/tools -D/usr/NetBSD/dest -uU kernel=TXPO
   Install kernel with cp
   ./ -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 ./ "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