2

I need to send kernel command line parameter in raspbian os to turn off spectre/meltdown patches. as i know we can do this in other linux distros through "/etc/default/grub" file by changing "GRUB_CMDLINE_LINUX=". but in raspbian os this file did not exist and even "grub-update" command and also "grub-mkconfig" did not installed.

could anyone tell me how i can pass kernel command line parameter in raspbian os?

2 Answers2

3

You should be able to edit /boot/cmdline.txt with any editor in privilege mode.

sudo nano /boot/cmdline.txt

This would allow you to send any kernel command. source

However, I think the mitigation isn't built in Raspbian.

Afourcat
  • 81
  • 3
1

From the official documentation on how to add kernel command line arguments you have to edit /boot/cmdline.txt with the kernel options you want to pass.

KamilCuk
  • 120,984
  • 8
  • 59
  • 111
  • Thanks, just another question. after adding kernel command line parameter in /boot/cmdline.txt do I need to do anything more like updating grub or etc? or I just need a reboot RPI. – alireza sadeghpour Feb 26 '20 at 13:30