Setting persistent kernel paramenters on Pop!_OS

By default, Pop!_OS does not have GRUB installed. How would I persistently set a kernel parameter in Pop!_OS?

In Pop!_OS, which uses the systemd-boot bootloader by default, you can persistently set a kernel parameter by modifying the bootloader configuration file. Here's an example of how to do it:

  1. Identify the Bootloader Configuration File:

    • The systemd-boot bootloader configuration file is located at /boot/efi/loader/entries/.
    • Open a terminal and navigate to that directory.
      cd /boot/efi/loader/entries/
  2. Create or Edit a Configuration File:

    • Identify the existing configuration file associated with the Pop!_OS entry. It usually has a .conf extension and includes the name of the Pop!_OS installation.
    • Open the configuration file using a text editor with root privileges.
      sudo vi pop_os-<version>.conf
  3. Add the Kernel Parameter:

    • Within the text editor, find the line starting with options.
    • Add the desired kernel parameter to the end of the line, separated by spaces.
    • For example, to set the net.core.somaxconn parameter to 2048, you would add it to the end of the line:
      options root=UUID=<UUID> quiet splash net.core.somaxconn=2048
  4. Save and Close the File:

    • Save the changes you made to the bootloader configuration file.
    • Close the text editor.
  5. Reboot the System:

    • Restart the system for the changes to take effect.
      sudo reboot

After rebooting, the Linux kernel parameter you set in the systemd-boot configuration file will be applied persistently.

Please note that the specific steps provided here are tailored to Pop!_OS and its default systemd-boot bootloader. If you're using a different distribution or have customized your bootloader, the steps may vary. It's recommended to consult the documentation or support resources specific to your distribution for accurate instructions on persistently setting kernel parameters.

You should also read: