by default we use rhel compatible kernel on our boxes but we also include kernel-uek as fallback. the problem is everytime system is updated and kernel-uek happens to be part of the upgrade transaction this piece of code is executed
and kernel-uek is made default. I don't think that kernel-uek scriptlet should made such assumptions and force itself to be default but leave this decision to the users as rhel compatible kernel does. I would propose to remove this block of code. Thoughts?