With the attached patch the modules are compiled for the right version for me. It seems like the postinst wasn't working if the passed in version (from the kernel's postinst.d) happened to be the newest kernel. I'm not sure why that stopped working. It could be that this code is meant to return nothing in the newest-kernel case, and some other part of the code is meant to add the passed-in version to the list of kernels to build for. I'm not sure.
Please could someone review? If you're comfortable, you can upload otherwise I can try to do that tomorrow along with forwarding the patch. The bug needs SRUifying too. ** Patch added: "lp1661843-v1.debdiff" https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1681566/+attachment/4860872/+files/lp1661843-v1.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1681566 Title: nvidia-375 DKMS module not recompiled on upgrade to 17.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-375/+bug/1681566/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs