Subject: Re: Wrong permissions?
To: Ossi Herrala <firstname.lastname@example.org>
From: Michael Schabert <email@example.com>
Date: 03/30/2003 09:07:32
On Saturday, March 29, 2003, at 04:44AM, Ossi Herrala <firstname.lastname@example.org> wrote:
>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?
> 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=/
But the *very* important step that you're leaving out is that you must su(d0)
to root before the install. If you perform those steps in exactly the order that
you list, then you either (1) were root the whole time (making -U useless),
or (2) could not have done the proper install with permissions because you were
not root ever.