How to install lts-kernel in addition to my current one

I have had hardly any problems up to now running EndeavourOS. It is a brilliant piece of work.

I use GRUB on a Legacy boot and I am considering installing the linux-lts kernel, additionally as a fallback, just in case there is the rare event of a new kernel happening to break something.

I have read several similar references to this question on this forum, but others have still somehow managed to come unstuck, so apologies for a repeat of this topic.

Please advise the correct procedure.

I do have a backup in place.

Thanks.

It’s relatively simple:

sudo pacman -Syu linux-lts linux-lts-headers

Then do:

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

Next time you boot up, you will be able to select it in the boot menu.

The above two steps are all you NEED to do, so you can stop here. The below information is to customise how things work.


Note: Installing a new kernel normally causes Grub to select the new kernel as the default kernel, so you may need to edit the file below to prevent this from happening.

https://wiki.archlinux.org/title/GRUB/Tips_and_tricks#Multiple_entries


sudo nano /etc/default/grub <- This opens the file as root
GRUB_DEFAULT=saved 
GRUB_SAVEDEFAULT=true
-> The above settings saves your selection in the Grub menu as default

Optionally, you can remove submenus by editing the line below like this:

GRUB_DISABLE_SUBMENU=y

If you do any of the extra steps, then re-run the command below after:

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

In addition, if you use the btrfs filesystem, for setting the default boot you can add this to
/etc/default/grub:

GRUB_TOP_LEVEL=/boot/vmlinuz-linux

for having the latest kernel start automatically.
For other kernels a similar setting applies.

1 Like

Many thanks to ddnn and manuel for your replies.

I entered the necessary commands from ddnn and all is well.

This forum is first class.

Thank you again.

morse

3 Likes

You’re welcome. Please mark your thread as solved by clicking the “Solution” button under the post that solved it for you.

Welcome @morse to the wonderful world of EndeavourOS

It is generally recommended by the experts here that you use the LTS kernel and make it the default.

Just do a search.
Shy would you need the latest kernel if LTS will work fine?! LTS is much more stable. It is the recommendation by the experts here.

I’m no expert, but who recommends that here?

As far as I know, they recommend exactly what the OP has decided to do:
→ Use the current/latest kernel, but also install the LTS kernel in case issues with the current kernel unexpectedly pop up.

I could be wrong, but this is what I remember as the recommendation.

@dalto for one

1 Like

Based on some of the responses, it is indeed quite a few. Like I said, I could be wrong. :grimacing:

Based on the reasoning, though, it seems it’s based on those with newer hardware. For me, with my 6-year-old device, the only issue I’ve had that was kernel-related was the Bluetooth thing a few/several months back. But since, I don’t use Bluetooth at all, I just turned it off in my BIOS and forgot about it.

Been going just fine with the current kernel. :grin:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.