How to change the standard kernel in grub menu?

With the Manjaro installation, the kernel-6.12.4-1 was set.
I have added the LTS kernel-6.6.65-1, but the 6.12.4-1 is still loaded by default. The LTS have to be selected in the advanced menu.
How can I change them in the start menu, so LTS to standard and 6.12.4-1 under advanced? Have I to edit the grub.cfg by hand or is there a function for this in the kernel selection?

For your information, 6.12 has been designated LTS at The Linux Kernel Archives - Releases

Edit the base config

sudo nano /etc/default/grub

This is only a partial base config

GRUB_DEFAULT=saved

GRUB_TIMEOUT_STYLE=menu

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
GRUB_DISABLE_SUBMENU=y

save the changes and rebuild grub.cfg

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

There are two ways of doing it, really. The first one is probably the best, which is to simply select the 6.6 kernel by way of the ā€œAdvanced optionsā€ menu in GRUB.

GRUB will by default remember the last kernel you booted, and will then boot into that by default the next time, provided that you let it boot automatically after the timeout. If you override this by hitting Enter at the GRUB menu, itā€™ll boot the kernel with the highest version number.

The second method involves editing /etc/default/grub and changing the line belowā€¦ :point_down:

GRUB_DEFAULT=saved

ā€¦ intoā€¦ :point_down:

GRUB_DEFAULT=x

ā€¦ whereby the ā€œxā€ should be replaced by the number of the submenu entry for the kernel you wish to boot by default, starting the count from ā€œ0ā€ for the first entry. So it will probably be ā€œ3ā€ in your case.

Then, save the file and runā€¦ :point_down:

sudo update-grub

That should do the trick. :wink:

If 6.12 has been designated LTS, then it needs to show that in Manjaro Settings Manager

6.12 has been designated to become the next LTS. It will not receive this moniker yet for as long as 6.13 ā€” which is the current ā€œmainlineā€, i.e. a development kernel ā€” has still not been declared Stable.

1 Like

Longterm release kernels

Version Maintainer Released Projected EOL
6.12 Greg Kroah-Hartman & Sasha Levin 2024-11-17 Dec, 2026
6.6 Greg Kroah-Hartman & Sasha Levin 2023-10-29 Dec, 2026
6.1 Greg Kroah-Hartman & Sasha Levin 2022-12-11 Dec, 2027
5.15 Greg Kroah-Hartman & Sasha Levin 2021-10-31 Dec, 2026
5.10 Greg Kroah-Hartman & Sasha Levin 2020-12-13 Dec, 2026
5.4 Greg Kroah-Hartman & Sasha Levin 2019-11-24 Dec, 2025

ā€“ The Linux Kernel Archives - Releases

That will happen at some point, but whether it is shown as such or not, does not change that upstream has been marked it for LTS.

1 Like

Many of us rely on Manjaro to keep us straight. What ever is going on upstream is not something we pay attention to. btw Iā€™m using 6.12, if I didnā€™t have problems with my mouse Iā€™d still still be on 6.6

No, its been LTS since December.

Its just lacking the mark on, ex, kernel.org front page is because it is the current ā€˜Stableā€™.

As @linux-aarhus shows above, it is designated LTS already, and this is shown on other tables.

I also pointed this out to other team members the last time they said the same.

https://forum.manjaro.org/t/changing-the-kernel/173332/12?u=cscs

caution on what you think you are entitled here, specially when dealing with rolling-release distros, irrespective whether its manjaro or otherwise. the sort of philosophy you are after, is best served in point-release distros.

for everyone who still had issues where all the recommended solutions either worked or didnt, and think this all would be fine if only grub picked the kernel you are in love with, as the primary kernel option, you can use following option in etc/default/grub to hard-set whichever kernel you desire as the top most kernel listed. ex (to set 6.6)

GRUB_TOP_LEVEL="/boot/vmlinuz-6.6-x86_64"

disclaimer; as with hard-setting options, what happens when and if you get rid of the hard-coded kernel is upto you to solve, if it goes south.

2 Likes