How to Add Kernel Parameters Using EFIBootmgr?

0
6
Asked By CuriousChipmunk98 On

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!

3 Answers

Answered By LinuxLover42 On

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.

Answered By SeekingSolutions14 On

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.

Answered By TechieTurtle77 On

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!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.