Module not loading on startup using rc.loader.d file

Started by weust, March 16, 2023, 05:07:40 PM

Previous topic - Next topic
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?
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

Hey,

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

# grep ipmi_load /boot/loader.conf


Cheers,
Franco

Can't you just create a tunable in the UI?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Quote from: pmhausen on March 16, 2023, 06:43:51 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.
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

Quote from: 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

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?

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

root@OPNsense:~ # grep ipmi_load /boot/loader.conf
ipmi_load="YES"
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

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

Yes, it works. And after discussing it on IRC I have added a tuneable.
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.