Subject: Re: etc chains...
To: None <netbsd-users@netbsd.org>
From: Amitai Schlair <schmonz@schmonz.com>
List: netbsd-users
Date: 02/05/2002 10:01:20
"Shannon" <shannon@widomaker.com> wrote:

> On Mon, Feb 04, 2002 at 07:24:43PM -0500, Lars Kellogg-Stedman wrote:
>
> > I place symlinks to /usr/pkg/etc/rc.d/foo into /etc/rc.d.  This way
all
> > the dependency resolving stuff gets taken care of [*], and generally
seems
> > cleaner than editing rc.local.
>
> Probably right, but it seems like this is something that should be
> "official".

What if /usr is a separate filesystem? The dependency ordering happens
very early, before all filesystems are mounted (the scripts that mount
filesystems are in /etc/rc.d!). Scripts stored in /usr/pkg/etc/rc.d
could well be on an unmounted filesystem when the dependency ordering is
determined. So they need to be on the root filesystem, somewhere where
/sbin/rcorder can be sure to find them, to be run properly at boot time.

- Amitai