Boot into new kernel in Fedora 19

Since kernel 3.10, everytime I did a kernel upgrade, my fedora just wouldn’t boot into this new kernel. Also I have previously set my TIMEOUT to 0, which means I won’t have a choice during boot.

The problem is not big nor severe, but it did took me some time to figure how.

grub2 in Fedora is a little bit different with grub in CentOS. In CentOS you could upgrade your kernel and boot into this new kernel automatically after reboot, whereas in Fedora you need to adjust the grub.cfg file manually.

The step was simple enough but it took me some time to look for the documents.

All I needed was to change the default TIMEOUT to 5 and another line of command: Using root’s privilege and modify /etc/defaults/grub, set the timeout to 5 and do a grub2 reconfiguration:

grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

And that’s it! Enjoy your new kernel!

You may need the same steps when you compile, upgrade and/or install your custom/new kernel.

Leave a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.