kldload pf failed on -current

Tai-hwa Liang avatar at mmlab.cse.yzu.edu.tw
Mon Aug 9 15:40:47 PDT 2004


On Tue, 10 Aug 2004, Jiawei Ye wrote:
> root at chihiro:/usr/src# kldload -v pf
> kldload: can't load pf: No such file or directory
> root at chihiro:/usr/src# kldload /boot/kernel/pf.ko
> root at chihiro:/usr/src# /etc/rc.d/pf restart
> Enabling pf.
> pf enabled
>
> Somehow kldload cannot find pf.ko if no specific path is given. This
> is a 2 hours old -current.

It looks like the default module path, /boot/kernel, was removed from
/boot/default/loader.conf on Aug 6.

Workaround 1: add /boot/kernel to your module_path.

/boot/loader.conf:
module_path="/boot/kernel;/boot/modules"

Workaround 2: Either load your modules in /boot/loader.conf or load them
with the full path.


More information about the freebsd-current mailing list