How to change kernel parameters on pi4

I’d like to change the kernel parameters for a pi4 running F36 server - ideally not through the boot menu as the machine is not connected to a screen/keyboard currently. How can I configure this from the cmdline?

  • I found /boot/efi/config.txt but the kernel command line is not controlled here it seems, it reads a file cmdline.txt instead according to Raspberry Pi Documentation - The config.txt file.
  • I looked for a cmdline.txt but there’s nothing under /boot. I created one there and under /boot/efi but it didn’t seem to take effect.
  • I found /boot/grub but I’m not sure if grub is even in use as there’s no update-grub command installed or available through dnf.

How’s it done? Thanks.

1 Like
sudo nano /etc/default/grub
sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Working with the GRUB 2 Boot Loader :: Fedora Docs

3 Likes

Amazing thank you! That worked, just edited /etc/default/grub and ran grub2-mkconfig -o /boot/grub2/grub.cfg.

3 Likes