OPNsense Forum

English Forums => General Discussion => Topic started by: park0kyung0won on November 19, 2018, 06:31:30 pm

Title: How can I make OPNSense load kernel module at startup?
Post by: park0kyung0won on November 19, 2018, 06:31:30 pm
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?
Title: Re: How can I make OPNSense load kernel module at startup?
Post by: franco on November 20, 2018, 06:18:14 am
Use /boot/loader.conf.local as /boot/loader.conf comment at the top suggest... or better yet use System: Settings: Tunables.


Cheers,
Franco
Title: Re: How can I make OPNSense load kernel module at startup?
Post by: franco on November 20, 2018, 06:20:49 am
PS: Made this a little clearer... https://github.com/opnsense/core/commit/95ef3e91
Title: Re: How can I make OPNSense load kernel module at startup?
Post by: park0kyung0won on November 21, 2018, 11:38:08 am
Tank you very much!
Title: Re: How can I make OPNSense load kernel module at startup?
Post by: AveryFreeman on January 27, 2021, 08:50:32 pm
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?
Title: Re: How can I make OPNSense load kernel module at startup?
Post by: franco on January 28, 2021, 10:15:47 am
Magic.... or just https://github.com/opnsense/core/issues/2083


Cheers,
Franco