I can successfully build a custom kernel (12.1 for a complete OPNsense build) and run it.
However, I'd like to create a monolithic kernel with the desired modules statically linked in. If I comment out the module names out of the loader.conf file, for instance:
So what files does the build for dynamic modules find that the build for static modules can't find? What do I need to do so that the kernel configuration succeeds?
However, I'd like to create a monolithic kernel with the desired modules statically linked in. If I comment out the module names out of the loader.conf file, for instance:
and put them in the KERNCONF file:if_tun_load="YES"
then the kernel configuration stage errors out with messages likedevice if_tun
With some modules, like carp, pf, and pflog, it doesn't have a problem. With others, like if_tun, if_lagg and if_tap, it throws errors.config: Error: device "if_tun" is unknown
So what files does the build for dynamic modules find that the build for static modules can't find? What do I need to do so that the kernel configuration succeeds?