[root@localhost ~]# ls -1 /boot/vmlinuz-*
/boot/vmlinuz-0-rescue-6d19da3ce9f3444dbb62aa3fe94e2836
/boot/vmlinuz-4.18.0-240.15.1.el8_3.x86_64
/boot/vmlinuz-4.18.0-305.12.1.el8_4.x86_64
/boot/vmlinuz-4.18.0-80.11.2.el8_0.x86_64
执行以下命令为 GRUB 设置默认内核。
[root@localhost ~]# grubby --set-default /boot//boot/vmlinuz-4.18.0-305.12.1.el8_4.x86_64
The default is /boot/loader/entries/6d19da3ce9f3444dbb62aa3fe94e2836-4.18.0-305.12.1.el8_4.x86_64.conf with index 0 and kernel /boot/vmlinuz-4.18.0-305.12.1.el8_4.x86_64