Subject: Re: /usr/pkg/etc/rc.d/* evaluated before filesystem checks
To: None <netbsd-users@NetBSD.org>
From: Chuck Yerkes <chuck+nbsd@2004.snew.com>
List: netbsd-users
Date: 04/06/2004 19:11:15
Quoting Jeremy C. Reed (reed@reedmedia.net):
> On Sat, 27 Mar 2004, Hanspeter Roth wrote:
> 
> > my rc_rcorder_flags="/root/etc/rc.d/* /usr/pkg/etc/rc.d/*".
> > While booting after the green messages there appears the date and
> > then comes a message
> >
> > rcorder: could not open /usr/pkg/etc/rc.d*: No such file or directory
> 
> > Is there an official means to make rc_rcorder_flags be evaluated
> > after /usr is mounted?
> 
> Yes. If it is on a different file system, then copy the rc.d files to your
> /etc/rc.d/ directory.


I tend to make /usr/pkg/etc/ a symlink to /etc/pkg.
It keeps my configs under one dir (/etc/) which is always mounted
(well, as often as /etc, so when the OS is in a useful state).

And if you teach make and rc.conf to look in /etc/pkg/rc.d/, then
you don't really CARE if /usr/pkg is mounted when the order is
chosen.

(also, I *presume* that /usr and /usr/local and /usr/pkg might be on
a shared resource (NFS server).  Long habit.  Per machien configs go
in /etc.  sudoers is about the only config that's multi-machine aware.)