Boot-Entries keep resetting after bootctl-install

Good Evening Everyone,

I am facing the issue that the bootloader-entries for systemd keep resetting after eacht bootctl-install and every pacman -Syu.

A few weeks back my gpt-auto-root stopped working and couldnt detect my root-partition anymore.

This lead to me entering the UUID of the correct partition in my loader-entries via root=UUID=<>

This works until the next update, after which the entries are reset.

I would either like for the entries not to be reset anymore or to fix my gpt-auto-root.

Concering gpt-auto-root I cant seem to figure it out. My EFI-Partition is on the same physical device as my boot-partition and I cant remember changing any configs as to make it not work anymore.

Would anyone be up to help me out?
Id also gladly talk via Discord or anything just to get it fixed. It drives me nuts…

The entry files are generated. If you want to change the options, edit /etc/kernel/cmdline

Then run sudo reinstall-kernels

Then the changes will stick.

Thx for the quick reply. What parameters would I need to add in order for the entries to not be auto-generated anymore?

You would remove all our systemd-boot automation and setup your own system-boot.

That being said, if you edit /etc/kernel/cmdline instead of the entries, it should work fine for you.

Ohh, you mean that I just add the root=UUID= to/etc/kernel/cmdline?

Yes, exactly.

Hmm, that sadly didnt work. I added the option to the cmdline. (Its okay that they are in one single line, right?)

Then I did kernel-reinstall and remove the option from my bootlaoder-entries.

Sadly it still doesnt work and I need to add the option to my loader entries again

Wait. You need to run sudo reinstall-kernels after you modify the options.

Or, more accurately, you don’t need to edit the entries at all. reinstall-kernels replaces the old entries with the new ones.

holy f it worked :smiley:

Thank you so much.

And this change should be consistent through updates and all, because its in the /ect/kernel/cmdline ?

And the problem with me not being able to log in through one of my monitors using kde ssdm seems to be gone aswell…

Yes. Basically what happens is that when the entries are generated during an update or install of a kernel, the options line is pulled in from /etc/kernel/cmdline

1 Like

Thats good to know. Thank you so much!

1 Like