There is a default entry inside /efi/loader/loader.conf that determine the default boot entry.
On a new install, it will look something like this:
That first string of characters is you entry token which identifies the install. That is important if you are dual-booting with another Linux, otherwise it can be replaced with *. That line supports wildcards and so if you want to boot the LTS kernel by default you could use something like this:
Alternatively, if you want to boot the mainline kernel by default, something like this should work:
Your feedback gave me a clue.
I added default *lts to the end of the file, rebooted and LTS was the default!
Still, it is not the first on the boot menu, it came third after arch and arch fallback!
I wonder how can I change it to be the first on top.
I know I am asking a lot!
Maybe boot loader was looking for “older” version (which is supposed to be the LTS) and it found the older version is arch, while the latest version is the LTS so it booted the older one thinking it is LTS?
Can this be the reason?
You may have to be patient. Before the LTS kernel switched to 6.1, it was on top of the menu for me. Once it “overtook” the main kernel, it dropped down the menu. I am assuming that the menu orders the kernels with the lowest number at the top, and once the main kernel in the Arch repos is 6.2, that the LTS kernel will be restored to the top of the menu.
I will try this and report back!
This is the beauty of this wonderful EndeavourOS forum.
I am always learning new things.
AMAZING as usual.
It set the default and gives me a big arrow head pointing the default.
I will try to remember SHIFT-D