How can I make OPNSense load kernel module at startup?

Started by park0kyung0won, November 19, 2018, 06:31:30 PM

Previous topic - Next topic
I have a mellanox 10 gbe NIC and it requires mlx5 and mlx5en modules to function
So I had to type "kldload mlx5en" manually in CLI
I wanted to automate this by writing entry in "/boot/loader.conf" but it is being
flushed at every reboot

How can I setup my OPNSense to load certain kernel module at startup?

Use /boot/loader.conf.local as /boot/loader.conf comment at the top suggest... or better yet use System: Settings: Tunables.


Cheers,
Franco



Quote from: franco on November 20, 2018, 06:20:49 AM
PS: Made this a little clearer... https://github.com/opnsense/core/commit/95ef3e91

I'm confused, the ReadTheDocs page says System-> Settings-> Tunables is for sysctl configuration parameters

How can it be for /boot/loader.conf and /etc/sysctl.conf at the same time?