Default kernel & kernel parameters with systemd-boot

Hi guys! Just installed EndeavourOS with systemd-boot (as recommended by the installer).
I would like to set zen kernel as default and add some kernel parameters. So after some googling I listed entries:

ls /efi/loader/entries
0fbc60270cdd45efa2a340c3aa9e7fff-6.1.4-arch1-1.conf
0fbc60270cdd45efa2a340c3aa9e7fff-6.1.4-arch1-1-fallback.conf
0fbc60270cdd45efa2a340c3aa9e7fff-6.1.4-zen2-1-zen.conf
0fbc60270cdd45efa2a340c3aa9e7fff-6.1.4-zen2-1-zen-fallback.conf

And added some kernel parameters into 6.1.4-zen2-1-zen.conf config file and set default using this command:
bootctl set-default @current

The problem is that these changes are not permanent. After updating the kernel, the names of the kernels change, new configuration files are generated.

Is there a good way to make these changes permanent?

1 Like

Yes. Both those topics are covered in our wiki article. Take a look and let us know if you have any questions.

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

The short answer, described in the article more fully is:

  • You set the kernel options in /etc/kernel/cmdline
  • You change the default kernel in /efi/loader/loader.conf by setting the default using wildcards
8 Likes

@dalto, Shame on me for not bothering to look up the wiki. Thank you!

1 Like

Works like a charm

2 Likes

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