Right way to change kernel parameters

Hello,

before using eOS, i used arch with grub and mkinitcpio. Now, with eOS and dracut+systemd-boot i’m mighty confused how to do certain things.

Today i wanted to activate amd-pstate kernel module, but it wont work. So what is the right way to add kernel parameters? Go to efi/loader/entries/… and add sth. to the option line? Or add it in /etc/kernel/cmdline ?

Do i have to execute dracut-rebuild after that?

1 Like

This ^^

How to modify kernel options

In systemd-boot, it is actually quite simple. You edit the appropriate entry file which can be found on your EFI partition in the loader/entries directory. Each entry is a boot option on the menu and each has a line called options. You can modify these entries directly, however, these changes may be overwritten when packages are installed or updated.

To make the changes, instead of modifying the entries, modify the file /etc/kernel/cmdline which is a one-line file containing a list of kernel options. Then run sudo reinstall-kernels which will populate the entries and regenerate the initrds.

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

2 Likes

ok, easy as that. Didn’t know about those Discovery-Pages. Thank you!

amd pstate is still not loading, but i guess i will figure it out…

1 Like

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