oracle / centos2ol

Script and documentation to switch CentOS/Rocky Linux to Oracle Linux
https://linux.oracle.com/switch/centos/
Universal Permissive License v1.0
345 stars 83 forks source link

UEK kernel not being set to default on CentOS 8 to Oracle 8 conversion #92

Open asmussen opened 3 years ago

asmussen commented 3 years ago

After using this script to convert a test system, I found that the UEK kernel was installed, but not set as the default booting kernel. I believe that the problem is in this line:

uek_path=$(find /boot -name "vmlinuz-*.el${os_version}uek.${arch}")

Adding some debugging lines before that, it appears that os_version was set to "8.4", but the path to the installed UEK kernel has "el8uek", not "el8.4uek":

/boot/vmlinuz-5.4.17-2102.204.4.4.el8uek.x86_64

I suspect that it should be using ${major_os_version} instead of ${os_version} in the assignment of the uek_path variable.

Djelibeybi commented 3 years ago

Thanks, will look into this.