설치된 kernel 목록 확인
grubby --info=ALL
[root@node1 ~]# grubby --info=ALL index=0 kernel="/boot/vmlinuz-5.15.0-101.103.2.1.el8uek.x86_64" args="ro resume=/dev/mapper/ol-swap rd.lvm.lv=ol/root rd.lvm.lv=ol/swap rhgb quiet numa=off transparent_hugepage=never $tuned_params" root="/dev/mapper/ol-root" 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="2ece60edbd5f41bebc450eaaacea37fc-5.15.0-101.103.2.1.el8uek.x86_64" index=1 kernel="/boot/vmlinuz-4.18.0-477.10.1.el8_8.x86_64" args="ro resume=/dev/mapper/ol-swap rd.lvm.lv=ol/root rd.lvm.lv=ol/swap rhgb quiet numa=off transparent_hugepage=never $tuned_params" root="/dev/mapper/ol-root" initrd="/boot/initramfs-4.18.0-477.10.1.el8_8.x86_64.img $tuned_initrd" title="Oracle Linux Server (4.18.0-477.10.1.el8_8.x86_64) 8.8" id="2ece60edbd5f41bebc450eaaacea37fc-4.18.0-477.10.1.el8_8.x86_64" index=2 kernel="/boot/vmlinuz-0-rescue-2ece60edbd5f41bebc450eaaacea37fc" args="ro resume=/dev/mapper/ol-swap rd.lvm.lv=ol/root rd.lvm.lv=ol/swap rhgb quiet numa=off transparent_hugepage=never $tuned_params" root="/dev/mapper/ol-root" initrd="/boot/initramfs-0-rescue-2ece60edbd5f41bebc450eaaacea37fc.img $tuned_initrd" title="Oracle Linux Server 8 (0-rescue-2ece60edbd5f41bebc450eaaacea37fc) " id="2ece60edbd5f41bebc450eaaacea37fc-0-rescue"
기본 kernel 확인
grubby --default-kernel
[root@node1 ~]# grubby --default-kernel /boot/vmlinuz-5.15.0-101.103.2.1.el8uek.x86_64
기본 kernel 변경
grubby --set-default /boot/vmlinuz-<kernel 버전>
[root@node1 ~]# grubby --set-default /boot/vmlinuz-4.18.0-477.10.1.el8_8.x86_64 The default is /boot/loader/entries/2ece60edbd5f41bebc450eaaacea37fc-4.18.0-477.10.1.el8_8.x86_64.conf with index 1 and kernel /boot/vmlinuz-4.18.0-477.10.1.el8_8.x86_64
기본 kernel 변경 확인
grubby --default-kernel
[root@node1 ~]# grubby --default-kernel /boot/vmlinuz-4.18.0-477.10.1.el8_8.x86_64
{}