How can I permanently boot the mainline kernel using systemd-boot?

How can I permanently boot the mainline kernel using systemd-boot?

My /efi/loader/loader.conf looks like this at this time:

default dac5c439da6244c184805aaa7c2bdcd3*
timeout 3
console-mode auto
reboot-for-bitlocker 1

Up until now, I’ve always used the latest LTS kernel. Now I’d like to permanently use the current mainline kernel. What do I need to enter, and where?

Scroll down this article and read the part about setting the default entry.

https://discovery.endeavouros.com/system-rescue/systemd-boot/2022/12/

Basically, you just change that default line in loader.conf.

Thanks about your answer @dalto, I will try that.

@dalto It works with the addition -arch?-?.conf, however I wonder why the newest kernel isn’t automatically placed first in the sorting.

Because they are sorted in ascending order. If they were sorted in descending order, the fallback would be the default.

And that can’t be changed?