Comment 5 for bug 451305

Revision history for this message
Bryce Harrington (bryce) wrote : Re: [jockey] Missing warnings in case of broken driver installation

Martin, one twist to think about...

I think dkms may only be building nvidia.ko for the *current* kernel, I think in most situations that should be fine, but if the user has installed a new kernel (as in an upgrade) but has not yet rebooted at the time they run jockey, it may be possible for nvidia.ko to be built fine... just against the wrong kernel. So jockey would not see any errors in this case, but still the reboot would fail to bring up X.

So one idea would be to cause the nvidia.ko to be built against additional kernels. Having it build against all kernels with header files installed would be easiest, however if the user has a lot of old kernels present that could be excessive and make upgrade take much longer than necessary. So maybe limit it in some fashion to just the 5 most recent kernels or something. Certainly if there are any kernels installed that are *newer* than the currently running kernel, that should be a flag that the upgrader has more work to do. Thoughts?