Best way to load kernel module during enlist/commission

Hi all

I want to see if I can trick MAAS into showing me our Infiniband Cards.
For that, I want to try to have the ephemeral boot environment load the ib_ipoib kernel module and leave it to MAAS to see if it finds something. (I mean, it also finds stuff like iDRAC usb modules, so…)

What’s my best starting point here?
I am pondering any of the following options

  • Using the enlist preseed to write an /etc/modprobe.d/ file (this might be too late?)
  • Using the enlist preseed to eventually call modprobe ib_ipoib || true (this feels wrong)
  • Trying to figure out a kernel command line that somehow effects the loading of the module (i haven’t found one yet)

I’m asking first because (a) rebooting any of our IB-capable hosts takes a lot of time and (b) maybe someone else can benefit from this.

-Tobias