How to Add Kernel Parameters Using EFIBootmgr?
Asked by
CuriousChipmunk98
Hey everyone! I don't have a traditional bootloader and I directly boot through EFI. I'm looking to add some kernel parameters, specifically to disable PSR, but I've struggled to find information on how to do this. Any guidance would be greatly appreciated!
Answers
You can compile the kernel with the CONFIG_CMDLINE_BOOL option and set your parameters during the build process. Iโve seen that option before, but I haven't personally tried it out. Just a heads up if you decide to go that route!
Reply to this answer
Actually, UEFI can directly boot a kernel! If you're using efibootmgr, you might want to check out the Arch Wiki page on EFI boot stubs for more info on how to manage that.
Reply to this answer
Itโs a common misconception that you don't have a bootloader. With UEFI, you likely have GRUB or systemd-boot. You can edit the `/etc/default/grub` file and update the `GRUB_CMDLINE_LINUX` variable to include your extra kernel parameters.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions