Subject: Re: etc chains...
To: None <netbsd-users@netbsd.org>
From: Amitai Schlair <schmonz@schmonz.com>
List: netbsd-users
Date: 02/06/2002 12:08:02
"Julio Merino" <juli@merino.net> wrote:
> On Tue, Feb 05, 2002 at 10:01:20AM -0500, Amitai Schlair wrote:
>
> > 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.
>
> Yeah, but... what about if you want to NFS export /usr? Clients won't
> have startup scripts, though they may need them...
That sounds similarly difficult: if you have pkgsrc rc.d scripts in
/usr, and you NFS-mount /usr, then you don't get them until /etc/rc.d
has mounted your filesystems, which means you've missed the
dependency-ordering boat. You could either put the rc.d scripts on your
root filesystem, or run a separate pass of /sbin/rcorder over
/usr/pkg/etc/rc.d later in the boot process.
I don't think anyone really likes the latter, because that way pkgsrc
rc.d scripts can't fit into the main dependency graph, but some people
may like it more than the alternatives. Some good ideas on this topic
have been floated on tech-pkg@.
- Amitai