<GrueMaster> The only other issue is this same problem could come up just from installing a new kernel, unless that triggers dkms.
Which brings me back to the second solution. Fix dkms and/or upstart to wait until dkms is finished.
<smb> ITYM something like for kernel versions ; do dkms {build|install} -m $module -v $version -k $kernel-version
<GrueMaster> The only other issue is this same problem could come up just from installing a new kernel, unless that triggers dkms.
Which brings me back to the second solution. Fix dkms and/or upstart to wait until dkms is finished.
<smb> ITYM something like for kernel versions ; do dkms {build|install} -m $module -v $version -k $kernel-version