How can I best get the mpt2 drivers back in to Centos8 [for maas images and openstack ironic/image builder]

Kendrick asked:

I need the mpt2sas drivers to get Centos8 to work with my servers. Thanks to them using the rhel nutered kernel the device id’s have been removed and wont load with out using a dd disk. I have both maas and openstack ironic/image service for openstack. In order to get those drivers back on the images that those 2 systems build/upload as far as I can tell I need either a custom vanilla rpm with the proper drivers or to find a way to get those build systems to pull the dd disk in during build time.

I am not sure which option would be more realistic to accomplish. maas has the ks boot dd option which i was not able to get to work when using packer-maas I haven’t had much experience with packer or ks so it may be something I did wrong.

The other option I had no issues making the kernel but am at a loss on how to build the rpm of it as all the instructions I have found were from the 2.6 kernel era. I was expecting to have to use a local rpm repo to mirror the centos8 repo and make my vanilla kernel be listed as the latest of the kernel series.

Any suggestions on how to make this work would be greatly appreciated.

My answer:

ELRepo provides many drivers for obsolete hardware that RHEL has removed from its kernels, as well as more recent longterm and mainline kernels (with such drivers already included).

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.