I've been trying to repackage some drivers we use for an expansion card for work, and the package that includes its driver installs about 100 kernel modules. I got it working with DKMS so that we can update servers without having to rerun any Ansible scripts, just update the damn server and expect new kernels to work.
Installing the package and running the DKMS hooks took about five minutes. Removing it is going to end up taking about three hours, holy fuck. It stops and spins on a CPU core for I-don't-know-what after every module so it's taking about as long as the complete install process did to remove a single module.
This is insane.
have you ever actually looked at DKMS? I have.
It's like a 2500 line shell script.
