linux mitigation disable (debian)#
Adds mitigations=off to the kernel command line, which disables all optional CPU
mitigations (Spectre, Meltdown, and the other grouped fixes). Do this only on machines that
never run code you don’t control — on a daily driver or shared system, leave them on.
Edit
/etc/default/grubas root:sudo nano /etc/default/grubAppend
mitigations=offto the existingGRUB_CMDLINE_LINUX_DEFAULTvalue — don’t replace the line, or you lose the distro’s other defaults such asquiet splash:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mitigations=off"If your setup puts the options in
GRUB_CMDLINE_LINUXinstead, edit that one.Regenerate the GRUB config, then reboot — the change does nothing until the next boot:
sudo update-grub sudo reboot
After rebooting, confirm the parameter is live:
grep -o mitigations=off /proc/cmdlineIf it is missing, the edit landed on the wrong variable, or something other than GRUB boots
this system (update-grub is a Debian wrapper; Arch and friends use grub-mkconfig -o /boot/grub/grub.cfg instead).