default Linux Kernel on OEL8
by cormanstnl from LinuxQuestions.org on (#6FDWG)
Hi,
I have Oracle Linux Server release 8.8
Today I run a yum updating the server and I see that the server have 2 kernel version :
Kernel 5.15 and 4.18.
Since the last startup of the server, I run with the kernel 4.18.0-425.10.1.el8_7.x86_64
and if I read correctly the output of grubby :
> grubby --info=ALL
Quote:
> grubby --default-kernel
Quote:
the next reboot will switch to kernel 5.15 and I'm not sure that is a good idea.
the content of /etc/sysconfig/kernel :
Quote:
So if I change the default-kernel by running :
> grub2-set-default 2
is the next boot will be with the kernel vmlinuz-4.18.0-477.27 or the first kernel 5.15.105 ?
or is it better change de default and change the DEFAULT-KERNEL on sysconfig (vi or is there a commande for that ?)
thank you
I have Oracle Linux Server release 8.8
Today I run a yum updating the server and I see that the server have 2 kernel version :
Kernel 5.15 and 4.18.
Since the last startup of the server, I run with the kernel 4.18.0-425.10.1.el8_7.x86_64
and if I read correctly the output of grubby :
> grubby --info=ALL
Quote:
index=0 kernel="/boot/vmlinuz-5.15.0-105.125.6.2.2.el8uek.x86_64" args="ro crashkernel=auto resume=UUID=61a2d0cd-8e09-41c7-b6a1-8477faf6ac26 numa=off transparent_hugepage=never $tuned_params" root="UUID=016bd340-3a46-4dce-a1a5-e082a4d3c6fb" initrd="/boot/initramfs-5.15.0-105.125.6.2.2.el8uek.x86_64.img $tuned_initrd" title="Oracle Linux Server 8 (5.15.0-105.125.6.2.2.el8uek.x86_64) " id="436a7be9271f4c87a9f545e1d43d9c21-5.15.0-105.125.6.2.2.el8uek.x86_64" index=1 kernel="/boot/vmlinuz-5.15.0-101.103.2.1.el8uek.x86_64" args="ro crashkernel=auto resume=UUID=61a2d0cd-8e09-41c7-b6a1-8477faf6ac26 numa=off transparent_hugepage=never $tuned_params" root="UUID=016bd340-3a46-4dce-a1a5-e082a4d3c6fb" initrd="/boot/initramfs-5.15.0-101.103.2.1.el8uek.x86_64.img $tuned_initrd" title="Oracle Linux Server 8 (5.15.0-101.103.2.1.el8uek.x86_64) " id="436a7be9271f4c87a9f545e1d43d9c21-5.15.0-101.103.2.1.el8uek.x86_64" index=2 kernel="/boot/vmlinuz-4.18.0-477.27.1.el8_8.x86_64" args="ro crashkernel=auto resume=UUID=61a2d0cd-8e09-41c7-b6a1-8477faf6ac26 numa=off transparent_hugepage=never $tuned_params" root="UUID=016bd340-3a46-4dce-a1a5-e082a4d3c6fb" initrd="/boot/initramfs-4.18.0-477.27.1.el8_8.x86_64.img $tuned_initrd" title="Oracle Linux Server (4.18.0-477.27.1.el8_8.x86_64) 8.8" id="436a7be9271f4c87a9f545e1d43d9c21-4.18.0-477.27.1.el8_8.x86_64" index=3 kernel="/boot/vmlinuz-4.18.0-477.13.1.el8_8.x86_64" args="ro crashkernel=auto resume=UUID=61a2d0cd-8e09-41c7-b6a1-8477faf6ac26 numa=off transparent_hugepage=never $tuned_params" root="UUID=016bd340-3a46-4dce-a1a5-e082a4d3c6fb" initrd="/boot/initramfs-4.18.0-477.13.1.el8_8.x86_64.img $tuned_initrd" title="Oracle Linux Server (4.18.0-477.13.1.el8_8.x86_64) 8.8" id="436a7be9271f4c87a9f545e1d43d9c21-4.18.0-477.13.1.el8_8.x86_64" index=4 kernel="/boot/vmlinuz-4.18.0-425.10.1.el8_7.x86_64" args="ro crashkernel=auto resume=UUID=61a2d0cd-8e09-41c7-b6a1-8477faf6ac26 numa=off transparent_hugepage=never $tuned_params" root="UUID=016bd340-3a46-4dce-a1a5-e082a4d3c6fb" initrd="/boot/initramfs-4.18.0-425.10.1.el8_7.x86_64.img $tuned_initrd" title="Oracle Linux Server (4.18.0-425.10.1.el8_7.x86_64) 8.7" id="436a7be9271f4c87a9f545e1d43d9c21-4.18.0-425.10.1.el8_7.x86_64" index=5 kernel="//boot/vmlinuz-0-rescue-436a7be9271f4c87a9f545e1d43d9c21" args="ro crashkernel=auto resume=UUID=61a2d0cd-8e09-41c7-b6a1-8477faf6ac26 numa=off transparent_hugepage=never" root="UUID=016bd340-3a46-4dce-a1a5-e082a4d3c6fb" initrd="//boot/initramfs-0-rescue-436a7be9271f4c87a9f545e1d43d9c21.img" title="Oracle Linux Server (0-rescue-436a7be9271f4c87a9f545e1d43d9c21) 8.7" id="436a7be9271f4c87a9f545e1d43d9c21-0-rescue" |
Quote:
/boot/vmlinuz-5.15.0-105.125.6.2.2.el8uek.x86_64 |
the next reboot will switch to kernel 5.15 and I'm not sure that is a good idea.
the content of /etc/sysconfig/kernel :
Quote:
# UPDATEDEFAULT specifies if kernel-install should make # new kernels the default UPDATEDEFAULT=yes # DEFAULTKERNEL specifies the default kernel package type DEFAULTKERNEL=kernel-uek-core |
> grub2-set-default 2
is the next boot will be with the kernel vmlinuz-4.18.0-477.27 or the first kernel 5.15.105 ?
or is it better change de default and change the DEFAULT-KERNEL on sysconfig (vi or is there a commande for that ?)
thank you