Ask Your Question

How to always have pre-selected the newest kernel on grub?

asked 2015-12-02 11:13:35 -0500

HoboPrimate gravatar image

I was able to choose the default following these instructions at the wiki , but, It's a bit bothersome to have to do it everytime a new kernel is installed.

Is there a way to make it so it always boots from the newest kernel (this is probably the default, maybe, and I messed it up somehow).

Thank you

edit retag flag offensive close merge delete


I have done all of that, except I missed making sure that GRUB_SAVEDEFAULT=false (it was set to true). So hopefully, if I now set the default to a specific entry (in my case, the newest one), it will nevertheless switch to a newer one on next upgrade?

I re-read the wiki, and if GRUB_SAVEDEFAULT was set to true, it should have saved by now the entry I chose last time.

HoboPrimate gravatar imageHoboPrimate ( 2015-12-02 13:30:48 -0500 )edit

So, does grub2-editenv list list you the most recent kernel installed? If that's the case now, you should be fine - also after the next kernel update. Let's see.

florian gravatar imageflorian ( 2015-12-02 17:02:11 -0500 )edit

Yep, it shows kernel version 4.2.6-301 which is the most recent in my F23. Thanks a lot!

HoboPrimate gravatar imageHoboPrimate ( 2015-12-03 10:47:27 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-12-02 11:31:55 -0500

florian gravatar image

updated 2015-12-02 11:41:34 -0500

By default, grub boots the most recent kernel installed. You must have changed something somewhere. Have you checked that /etc/default/grub does have a line


and no line saying


exists? Have you ran grub2-mkconfig -o /boot/grub2/grub.cfg? And afterwards set the default entry as mentioned in the wiki?

edit flag offensive delete link more

Question Tools



Asked: 2015-12-02 11:13:35 -0500

Seen: 352 times

Last updated: Dec 02 '15