AlmaLinux 9.1 customized kernel default saved grub2 config HOWTO (2023, kernel 5.14)
👍 Hint: Use "grub2-editenv", to replace default "saved_entry" kernel with your home-made kernel in /boot/loader/entries/✅ $ ls -al /boot/loader/entries/
-rw-r--r--. 1 root root 440 Dec 29 17:46 115c29f06e0b4c2886665566d3270d47-0-rescue.conf
-rw-r--r--. 1 root root 303 Jan 16 15:11 115c29f06e0b4c2886665566d3270d47-5.14.0+.conf
-rw-r--r--. 1 root root 384 Dec 29 17:46 115c29f06e0b4c2886665566d3270d47-5.14.0-162.6.1.el9_1.x86_64.conf
(__BEFORE__)
✅ $ grub2-editenv list
saved_entry=115c29f06e0b4c2886665566d3270d47-5.14.0-162.6.1.el9_1.x86_64
menu_auto_hide=1
boot_success=0
boot_indeterminate=0
(__AFTER__)
✅ $ grub2-editenv /boot/grub2/grubenv set saved_entry=115c29f06e0b4c2886665566d3270d47-5.14.0+
✅ $ grub2-editenv list
saved_entry=115c29f06e0b4c2886665566d3270d47-5.14.0+
menu_auto_hide=1
boot_success=0
boot_indeterminate=0