oracle / centos2ol

Script and documentation to switch CentOS/Rocky Linux to Oracle Linux

Home Page:https://linux.oracle.com/switch/centos/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

asmussen opened this issue · comments

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.

Thanks, will look into this.