Ask Your Question
1

A right way to change default kernel?

asked 2015-11-20 16:13:54 -0500

evb0110 gravatar image

updated 2015-11-20 16:14:30 -0500

I installed Fedora 22 several weeks ago and some time later updated to 23. Now when I boot I have 5 or 6 available kernels. The default kernel has the word "debug" in its name and as it seems works worse than 23's kernel without "debug". Since I'm a novice I'm looking for a simple and secure solution:

1) How could I change the default kernel to boot without "debug"?

2) Should I delete some of the kernels? What is the "right" way to do it?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2015-11-20 17:35:16 -0500

sergiomb gravatar image

https://fedoraproject.org/wiki/GRUB_2...

Open /etc/default/grub and ensure this line exists:

GRUB_DEFAULT=saved

and ensure this line not exists:

GRUB_SAVEDEFAULT=true

or ensure this line exists:

GRUB_SAVEDEFAULT=false

next:

grep -P "submenu|^menuentry" /boot/grub2/grub.cfg | cut -d "'" -f2

grub2-mkconfig -o /boot/grub2/grub.cfg

grub2-set-default "<submenu title><menu entry title>"
edit flag offensive delete link more

Comments

What does "<submenu title=""><menu entry="" title="">" mean? I think I know what one of these is but what is the second?

skomra gravatar imageskomra ( 2016-08-23 16:29:30 -0500 )edit

when you got sub menus if not in use GRUB_DISABLE_SUBMENU=true

sergiomb gravatar imagesergiomb ( 2016-08-24 23:24:05 -0500 )edit
0

answered 2017-07-12 11:38:30 -0500

mmartinez gravatar image

@skomra example of your question:

sudo grub2-set-default 4.8.6-300.fc25.x86_64

4.8.6-300.fc25.x86_64 = <submenu title=""><menu entry="" title="">

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2015-11-20 16:13:54 -0500

Seen: 8,972 times

Last updated: Jul 12 '17