Switching between UEK and RHCK in practice: one grubby command, both directions reboot-tested
What you will learn
Section titled “What you will learn”Oracle Linux ships two kernels out of the box (UEK and RHCK). This page records one real round-trip switch end to end: how to switch, how to verify, and which service states follow along. For the selection overview and differences see UEK vs RHCK: choosing between the two kernels.
First, the current state: both kernels present
Section titled “First, the current state: both kernels present”An OL 10.2 installed from the plain boot.iso:
rpm -qa | grep -E '^kernel' | sortkernel-6.12.0-211.72.1.el10_2.x86_64 ← RHCK (the RHEL-compatible kernel)kernel-core-6.12.0-211.72.1.el10_2.x86_64kernel-modules-6.12.0-211.72.1.el10_2.x86_64...kernel-uek-6.12.0-208.112.5.el10uek.x86_64 ← UEK (Oracle's own kernel)kernel-uek-core-6.12.0-208.112.5.el10uek.x86_64...grubby --default-kernel points to el10uek — UEK is the factory default, and the GRUB title reads ... with Unbreakable Enterprise Kernel. The installer itself runs RHCK, yet the installed system defaults to UEK; that is a deliberate distribution decision, not an oversight.
Switching: one grubby command, no grub config edits
Section titled “Switching: one grubby command, no grub config edits”EL10 manages boot entries with BLS (the Boot Loader Specification) — one file per kernel under /boot/loader/entries/*.conf. The official entry point for changing the default is grubby:
# Switch to RHCKgrubby --set-default=/boot/vmlinuz-6.12.0-211.72.1.el10_2.x86_64grubby --default-kernel # read back to verifyrebootAfter the reboot:
uname -r# 6.12.0-211.72.1.el10_2.x86_64Switching back to UEK works the same way:
grubby --set-default=/boot/vmlinuz-6.12.0-208.112.5.el10uek.x86_64reboot# after reboot uname -r → 6.12.0-208.112.5.el10uek.x86_64Both directions measured successfully (E3 run record with per-step exit-code checks).
What follows along after a switch
Section titled “What follows along after a switch”- kdump:
crashkernel=1G-64G:448M,64G-:512Msits on the kernel command line and is shared by both kernels. Measured:kdumpctl statusunder RHCK is operational too — no reconfiguration needed; - Third-party kernel modules: DKMS-style modules (some NIC/GPU drivers) are compiled per kernel version — after switching, they need recompiling or matching kmod packages for the other kernel. This is the most common way a switch goes wrong;
- Repository view:
kernel-*(RHCK) packages come from BaseOS,kernel-uek-*from the UEK repository (ol10_UEKR8). Both kernels receive their own security updates in parallel — switching does not change the update policy (see the UEK upgrade and multi-kernel page).
When you actually need to switch
Section titled “When you actually need to switch”| Scenario | Recommendation |
|---|---|
| Everyday production | UEK (factory default; Ksplice rebootless patching is fully supported only on UEK) |
| Strict RHEL compatibility required (specific ISV certification, SELinux policies depending on RHCK modules) | RHCK |
| Kernel development/debugging (Ksplice, DTrace, new eBPF features) | UEK |
| Troubleshooting a failure that appears under only one kernel | Switch backwards and bisect |
The full differences-and-selection list lives on the kernels overview page; this page covers only “how to switch”.
Evidence and limits on this page
Section titled “Evidence and limits on this page”- Measured: the complete UEK→RHCK→UEK round trip (two real reboots), dual-kernel packages side by side, kdump active under RHCK;
- Not measured: DKMS module recompilation across kernels (no third-party modules in this environment);
- Sources: UEK 8 documentation, the Oracle Linux kernel version matrix,
grubby(8).