Subject: bin/6571: If lkm=NO in /etc/rc.conf, /usr doesn't mount early enough for $ppp_peers to be used
To: None <email@example.com>
From: Jim Wise <firstname.lastname@example.org>
Date: 12/12/1998 18:03:21
>Synopsis: If lkm=NO in /etc/rc.conf, /usr doesn't mount early enough for $ppp_peers to be used
>Responsible: bin-bug-people (Utility Bug People)
>Arrival-Date: Sat Dec 12 15:20:01 1998
>Originator: Jim Wise
>Release: NetBSD-currenta of 1998-12-12
System: NetBSD arnor.unicast.com 1.3I NetBSD 1.3I (ARNOR) #13: Sat Dec 12 05:41:36 EST 1998 email@example.com:/home/src/sys/arch/i386/compile/ARNOR i386
/etc/rc.conf contains a variable $ppp_peers, which can be used to
list hosts from /etc/ppp/peers to dial on startup (from /etc/netstart).
This fails in actual practice, however, as pppd is in /usr/sbin, but
/usr has not been mounted yet when netstart is run. This may be hidden
for users using LKM's, as /usr _is_ mounted before netstart iff $lkm
is YES in /etc/rc.conf and /etc/lkm.conf exists.
This is sort of a double bind, as /usr should be mounted after netstart
is run if it is NFS mounted, but is needed for netstart to succedd if
ppp_peers is set.
in /etc/rc.conf set lkm=NO, and set ppp_peers to the name(s) of one or
more hosts from /etc/ppp/peers.
Not sure. Perhaps pppd should be in /sbin, which would allow the pathlogical
behavior of mounting /usr over ppp. Otherwise, $ppp_peers should be handled
in /etc/rc, after /etc/netstart has been run, although this breaks the seperation
of netwroking code into /etc/netstart.