How do I make mainline kernel show when I boot?

Hi,

During installation, I chose only the LTS kernel by itself. Now I went ahead and installed the mainline kernel, so I can have two kernels in case of a disaster scenario, but when I reboot I don’t see the option to boot from the mainline kernel.

How do I update the systemd bootloader to recognize it?

Furthermore, how do I make sure the mainline kernel is the default highlighted choice during reboot so that if I don’t manually select the kernel I want, it will auto select the mainline during its countdown (this is assuming it selects LTS for whatever reason).

1 Like

Hello and welcome to EndeavourOS and the Forum @Rocko!

If you can do that with @saved see here (4.1.1)

You can edit your loader.conf with sudo nano /efi/loader/loader.conf

by the default you type @saved

now it (/efi/loader/loader.conf) looks something like this

default @saved
timeout 5
console-mode auto
reboot-for-bitlocker 1

To save your edit press Strg/Ctl+O then press ENTER and it will be saved. To exit nano press Strg/Ctl+X to exit.

What is does is that it remembers the last chosen entry. The downside is that you have to select it again when a new kernel is installed that replace the old entry.

Edit:

Maybe there are better ways to do it. It is working for me like 3+ months now

Edit 2:

Sry that i only answered question No. 2 :frowning:

Edit 3:

Now to the Problem with the mainline kernel. Can you check with akm (if not installed type: sudo pacman -S akm ) if the mainline kernel is installed?

If it is it look like this:

If it looks the same please give sudo reinstall-kernels and reboot after that.

If it not looks like the screenshot please it and press Execute now a console window will open. Wait for it to finish the installation. Now reboot and you will see (normally) the new entries.

1 Like

Thanks for the help

1 Like

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