I am on systemd-boot, it was defaulting to LTS.
I am on BTRFS, dracut, snapper,…
I just discovered my boot menu has LTS but it is not the default. I wonder why it changed!
This is what I have in /efi/loader/entries/
[limo@asus entries]$ ls
a9d690a5d1c144ee81cbb0b9de665c13-6.1.12-arch1-1.conf
a9d690a5d1c144ee81cbb0b9de665c13-6.1.12-arch1-1-fallback.conf
a9d690a5d1c144ee81cbb0b9de665c13-6.1.14-1-lts.conf
a9d690a5d1c144ee81cbb0b9de665c13-6.1.14-1-lts-fallback.conf
[limo@asus entries]$
During boot I have arch, arch fallback, LTS, LTS fqllback in this order.
Tried to update system, and even did
sudo reinstall-kernels
But still not having LTS as default.
Honestly I tried to read and search, but I could not figure it out.
I know there is a file I can edit to change the boot order to make LTS the default. What can I do to have LTS as default and avoid this to happen again?
I am on EndeavourOS only, no other systems on my laptop.
I will appreciate any help.
EDIT:
I just noticed that the LTS version appears to be 6.1.14-1 (more recent than the arch 6.1.12) How could this be?
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:
default 665eca4ae83246df8ec17d1cbc6a1763*
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:
default 665eca4ae83246df8ec17d1cbc6a1763*lts.conf
Alternatively, if you want to boot the mainline kernel by default, something like this should work:
I remember I only changed /added timeout to “see” the boot menu of systemd-boot (as shown in the thread.
I do not not even know what is # console-mode keep, should I un-comment it? what does it do?
Thanks @r0ckhopper
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.
UPDATE:
AMAZING as usual.
It set the default and gives me a big arrow head pointing the default.
I will try to remember SHIFT-D