如何在 raspbian 中发送内核命令行参数

how to send kernel command line parameter in raspbian

我需要在 raspbian os 中发送内核命令行参数来关闭 spectre/meltdown 补丁。据我所知,我们可以通过更改 "GRUB_CMDLINE_LINUX=" 在“/etc/default/grub”文件中的其他 linux 发行版os 中执行此操作。但是在 raspbian os 中这个文件不存在,甚至 "grub-update" 命令和 "grub-mkconfig" 也没有安装。

谁能告诉我如何在 raspbian os 中传递内核命令行参数?

official documentation on how to add kernel command line arguments 开始,您必须使用要传递的内核选项编辑 /boot/cmdline.txt

您应该可以在特权模式下使用任何编辑器编辑 /boot/cmdline.txt

sudo nano /boot/cmdline.txt

这将允许您发送任何内核命令。 source

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