OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: weust on March 16, 2023, 05:07:40 pm

Title: Module not loading on startup using rc.loader.d file
Post by: weust on March 16, 2023, 05:07:40 pm
I am trying to load the ipmi module, after installing the ipmitool package via SSH, but somehow it doesn't load.
Loading it manually works fine.

I created /usr/local/etc/rc.loader.d/20-ipmi and added ipmi_load="YES" to it.

Seems the file doesn't need any special permissions or user:group on it, so what could I be missing?
Title: Re: Module not loading on startup using rc.loader.d file
Post by: franco on March 16, 2023, 05:32:25 pm
Hey,

Let's first make sure the template is moved to the config:

# grep ipmi_load /boot/loader.conf


Cheers,
Franco
Title: Re: Module not loading on startup using rc.loader.d file
Post by: Patrick M. Hausen on March 16, 2023, 06:43:51 pm
Can't you just create a tunable in the UI?
Title: Re: Module not loading on startup using rc.loader.d file
Post by: weust on March 16, 2023, 07:45:12 pm
Can't you just create a tunable in the UI?

Perhaps? I was told last year to do it this way.
But I can't refer to that atm.
Title: Re: Module not loading on startup using rc.loader.d file
Post by: weust on March 16, 2023, 07:46:58 pm
Hey,

Let's first make sure the template is moved to the config:

# grep ipmi_load /boot/loader.conf


Cheers,
Franco

This is odd. I initially named the file 20-ipmitool, but later I thought the module is named ipmi and the pkg is named ipmitool, so made more sense to rename is to 20-ipmi.
And now it works?

Quote
root@OPNsense:~ # grep ipmi_load /boot/loader.conf
ipmi_load="YES"

root@OPNsense:~ # grep ipmi_load /boot/loader.conf
ipmi_load="YES"
Title: Re: Module not loading on startup using rc.loader.d file
Post by: franco on March 16, 2023, 07:52:10 pm
The name of the file doesn't matter, only the contents.

So works? :)

Patrick is right of course, you could add a tunable nowadays as well.


Cheers,
Franco
Title: Re: Module not loading on startup using rc.loader.d file
Post by: weust on March 16, 2023, 08:04:11 pm
Yes, it works. And after discussing it on IRC I have added a tuneable.