Ask Your Question
1

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

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

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

Comments

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 -0600 )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 -0600 )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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
3

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

florian gravatar image

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

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

GRUB_DEFAULT=saved

and no line saying

GRUB_SAVEDEFAULT=true

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

2 followers

Stats

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

Seen: 347 times

Last updated: Dec 02 '15