# Set systemd-boot Default to LTS?

**URL:** <https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798>\
**Category:** Newbie\
**Created:** [February 26, 2023, 10:17am UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798 "2023-02-26T10:17:51Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [February 26, 2023, 10:17am UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/1 "2023-02-26T10:17:52Z")

</div>

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/`

```auto
[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

```auto
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?

---

<div class="post-metadata">

**Author:** ![r0ckhopper](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/r0ckhopper/32/51768_2.png) [@r0ckhopper](https://forum.endeavouros.com/u/r0ckhopper)\
**Post date:** [February 26, 2023, 10:21am UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/2 "2023-02-26T10:21:04Z")

</div>

[From the EndeavourOS Wiki:](https://discovery.endeavouros.com/installation/systemd-boot/2022/12/)

**How to change the default entry to boot**

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:

default 665eca4ae83246df8ec17d1cbc6a1763-\*-arch?-?.conf

These changes will take effect on the next reboot and nothing else is required except modifying the file.

---

<div class="post-metadata">

**Author:** ![r0ckhopper](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/r0ckhopper/32/51768_2.png) [@r0ckhopper](https://forum.endeavouros.com/u/r0ckhopper)\
**Post date:** [February 26, 2023, 10:24am UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/3 "2023-02-26T10:24:28Z")

</div>

> [@limotux](#):
>
> 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?

> [@Linux 6.1 should be the new LTS version, but it doesn't look like this in pacman](https://forum.endeavouros.com/t/linux-6-1-should-be-the-new-lts-version-but-it-doesnt-look-like-this-in-pacman/37476):
>
> 5.15 is shown in the package instead. I wanna move to 6.1 LTS a lot.

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [February 26, 2023, 10:26am UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/4 "2023-02-26T10:26:12Z")

</div>

> [@r0ckhopper](#):
>
> There is a default entry inside /efi/loader/loader.conf that determine the default boot entry.

Thanks @r0ckhopper  
I remember while trying to find out I came across this file

```auto
/efi/loader/loader.conf

```

which only has

```auto
timeout 3
# console-mode keep

```

Looks strange to me!

---

<div class="post-metadata">

**Author:** ![r0ckhopper](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/r0ckhopper/32/51768_2.png) [@r0ckhopper](https://forum.endeavouros.com/u/r0ckhopper)\
**Post date:** [February 26, 2023, 10:28am UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/5 "2023-02-26T10:28:03Z")

</div>

> [@limotux](#):
>
> which only has
> 
> ```auto
> /efi/loader/loader.conf
> 
> ```

Are you saying the contents of `/efi/loader/loader.conf` are “/efi/loader/loader.conf”? 🤔

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [February 26, 2023, 10:34am UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/6 "2023-02-26T10:34:14Z")

</div>

> [@r0ckhopper](#):
>
> Are you saying the contents of `/efi/loader/loader.conf` are “/efi/loader/loader.conf”? 🤔

Appologies!  
My bad.  
I don’t know why copy paste didnt work as expected!  
I corrected  
It has

```auto
timeout 3
# console-mode keep

```

---

<div class="post-metadata">

**Author:** ![r0ckhopper](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/r0ckhopper/32/51768_2.png) [@r0ckhopper](https://forum.endeavouros.com/u/r0ckhopper)\
**Post date:** [February 26, 2023, 10:37am UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/7 "2023-02-26T10:37:16Z")

</div>

> [@limotux](#):
>
> I don’t know why copy paste didnt work as expected!  
> I corrected  
> It has
> 
> ```auto
> timeout 3
> # console-mode keep
> 
> ```

Is that all it has? It looks like you have edited it at least once before - `console-mode` has been commented out.

I don’t know how to regenerate your entry token which identifies the install, which should be at line 1. Others may be able to assist here.

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [February 26, 2023, 10:52am UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/8 "2023-02-26T10:52:24Z")

</div>

> [@r0ckhopper](#):
>
> It looks like you have edited it at least once before - `console-mode` has been commented out.

I remember when Cassini/dracut came out I wanted to modify my system to be as the latest release. [Convert to systemd-boot with dracut?](https://forum.endeavouros.com/t/convert-to-systemd-boot-with-dracut/35304)

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?

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [February 26, 2023, 11:18am UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/9 "2023-02-26T11:18:11Z")

</div>

> [@r0ckhopper](#):
>
> I don’t know how to regenerate your entry token which identifies the install, which should be at line 1

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!

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [February 26, 2023, 11:48am UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/10 "2023-02-26T11:48:48Z")

</div>

> [@limotux](#):
>
> 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?

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?

---

<div class="post-metadata">

**Author:** ![r0ckhopper](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/r0ckhopper/32/51768_2.png) [@r0ckhopper](https://forum.endeavouros.com/u/r0ckhopper)\
**Post date:** [February 26, 2023, 12:12pm UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/11 "2023-02-26T12:12:51Z")

</div>

> [@limotux](#):
>
> I added `default *lts` to the end of the file, rebooted and LTS was the default! 🥳

Good to hear 😅

> [@limotux](#):
>
> 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.

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.

We shall see…

> [@limotux](#):
>
> I know I am asking a lot!

😇

---

<div class="post-metadata">

**Author:** ![anon26269396](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@anon26269396](https://forum.endeavouros.com/u/anon26269396)\
**Post date:** [February 26, 2023, 12:18pm UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/12 "2023-02-26T12:18:55Z")

</div>

I might be missing something here but I highlight the one that I want to boot from as default and hit ‘Shift + D’

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [February 26, 2023, 12:30pm UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/13 "2023-02-26T12:30:38Z")

</div>

> [@r0ckhopper](#):
>
> I am assuming that the menu orders the kernels with the lowest number at the top

This -to me- sounds logical, same logic why it didn’t default to LTS though it was before.  
First time to even think LTS could be the latest!

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [February 26, 2023, 12:31pm UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/14 "2023-02-26T12:31:46Z")

</div>

> [@anon26269396](#):
>
> I highlight the one that I want to boot from as default and hit ‘Shift + D’

**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**

---

<div class="post-metadata">

**Author:** ![r0ckhopper](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/r0ckhopper/32/51768_2.png) [@r0ckhopper](https://forum.endeavouros.com/u/r0ckhopper)\
**Post date:** [February 26, 2023, 12:49pm UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/15 "2023-02-26T12:49:44Z")

</div>

> [@anon26269396](#):
>
> I might be missing something here

I think you found something 👍

---

<div class="post-metadata">

**Author:** ![limotux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/limotux/32/35347_2.png) [@limotux](https://forum.endeavouros.com/u/limotux)\
**Post date:** [February 28, 2023, 11:20am UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/16 "2023-02-28T11:20:38Z")

</div>

> [@r0ckhopper](#):
>
> 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.
> 
> We shall see…

Just reporting back in hope it will help anybody reading this.

You are right @r0ckhopper  
I got an update and it is back to normal and LTS is on top.  
Thank you.

---

<div class="post-metadata">

**Author:** ![r0ckhopper](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/r0ckhopper/32/51768_2.png) [@r0ckhopper](https://forum.endeavouros.com/u/r0ckhopper)\
**Post date:** [February 28, 2023, 2:33pm UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/17 "2023-02-28T14:33:01Z")

</div>

> [@limotux](#):
>
> You are right @r0ckhopper

I always am 😜

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [March 2, 2023, 2:33pm UTC](https://forum.endeavouros.com/t/set-systemd-boot-default-to-lts/37798/18 "2023-03-02T14:33:04Z")

</div>

Closed on March 2, 2023, 2:33pm UTC

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