Subject: Re: pf + current-GENERIC
To: Peter Postma <peter@pointless.nl>
From: Marcin Jessa <lists@yazzy.org>
List: current-users
Date: 02/14/2006 10:20:38
On Tue, 14 Feb 2006 09:38:34 +0100
Peter Postma <peter@pointless.nl> wrote:

> Jeremy C. Reed wrote:
> > On Mon, 13 Feb 2006, matthew sporleder wrote:
> > 
> >>> What does your /etc/lkm.conf contain?
> >> /usr/lkm/pf.o   -               -               -
> >> - AFTERMOUNT
> > 
> > 
> > That appears to be part of the problem.
> > 
> > AFTERMOUNT is done by lkm3 rc.d script and is after pf.
> > 
> 
> Indeed, this is a problem.
> 
> Matthew, can you try replacing AFTERMOUNT with BEFORENET ?
> That should solve your problem. This will not work when /usr is
> mounted via the network, but I can't think of a better solution now.
> 
> > The kernel modules are on /usr which is not loaded until the
> > networking is all started up. But pf is ordered before the
> > networking.
> > 
> > current-users: Why are the kernel modules located in /usr? It seems
> > like /lkm would be better. (Disk space issue?)
> > 
> 
> Good question. AFAIK FreeBSD has the modules also in the root file
> system (i believe is was /modules). Maybe we should do this too.

FreeBSD keeps both the kernel and modules in /boot/kernel/
Old kernel and modules after you compile new ones get automatically
moved over to  /boot/kernel.old/ (running make installkernel
in /usr/src ).
This way you can keep your /boot on separate partition if desired.

Marcin.