...
/var/log/nvidia-installer.log
/var/log/Xorg.0.log
How does a kernel install trigger an nvidia rebuild using DKMS?
$ rpm -q --scripts kernel
-> /sbin/new-kernel-pkg
-> /etc/kernel/postinst.d/dkms
-> /usr/lib/dkms/dkms_autoinstaller
-> /usr/sbin/dkms
Taylor runs during the night, and taylor runs 'yum upgrade'. When there is a new kernel available, yum will install it. When it gets installed, the postinstall scripts in the RPM are run. Many things are run in the these postinstall scripts, including a script called '/sbin/new-kernel-pkg'. /sbin/new-kernel-pkg looks in the /etc/kernel/postinst.d/ directory and runs anything in there. /sbin/new-kernel-pkg finds a script called dkms inside the /etc/kernel/postinst.d/ directory. The /etc/kernel/postinst.d/dkms script runs the /usr/sbin/dkms script. The dkms man page describes how the build happens from here.
References:
DKMS
See the dkms manual page, using the command: 'man dkms'
https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support
https://github.com/dell/dkms
Kernel Module Weak Updates
https://trapsink.com/wiki/Kernel_Module_Weak_Updates