Automatically pass an argument to the kernel?


EndeavourOS is really a rocking machine :slight_smile:

I only have a “problem”. As I got regularly freeze I pass options to the kernel via grub and the kernel cfg file.

After every kernel update I need to edit /efi/loader/entries/kernel_entries.cfg to add intel_pstate=disable.

Is there a way to pass options to the kernel automatically?

Thx by advance


1 Like

You are using systemd-boot, right?

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.


Add your kernel parameters to


and then run:

sudo reinstall-kernels

1 Like

Great. didn’t see that page. I’ll try it as soon as possible.

Thank you very much.


I add a little thing.
To know which argument is pass to the booted kernel we can use:

cat /proc/cmdline
1 Like

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