Unfortunately this is normal. Nvidia hard locks to specific kernel versions and doesn’t take advantage of weak modules. This means when we have to rebuild a kernel, the nvidia driver will stop working.
Consider the following options:
- Use rpmfusion for your driver
- If you wish to continue using nvidia as the source of your drivers, use dkms instead.
See the following post for more information: Nvidia Drivers on Rocky Linux