CoreOS and proprietary kernel modules

Hi,

I need to be able to use proprietary drivers for Magewell video capture hardware with CoreOS.

Currently I am building an ostree native container, building and adding the driver there, but it is pretty clunky and means losing zincati updates.

I wonder if there is a better way to install the driver in CoreOS? Can I for example make some kind of RPM that could be overlaid using rpm-ostree and get auto rebuilt when the kernel updates? I’ve had a look but not found much info on packaging proprietary drivers using RPM and not sure if CoreOS supports things like DKMS or whatever the preferred method is anyway?

Many thanks for your help!

You might check this out for reference for how this is done for ostree with akmods for RPMFusion, including secureboot support: