The kernel module package does not match on RHEL 10 family

On the RHEL 10 family, the kernel-modules-extra package does not match the running kernel because the image boots a different kernel.

Condition

kernel-modules-extra does not match the running kernel.

Cause

The image boots a different kernel than the one the installed module package supports.

Remedy

Repeat the kernel step of the RHEL-family build.