There are three ways to pass options to the kernel and thus control its behavior:
- When building the kernel—in the kernel’s
- When starting the kernel—using command line parameters (usually through a boot loader).
- At runtime—through the files in
This page only explains the second method (kernel command line parameters).
Kernel parameters can be set either temporarily by editing the boot entry in the boot loader’s boot selection menu, or permanently by modifying the boot loader’s configuration file.
The following examples add the
splash parameters to GRUB.
ewhen the menu shows up and add them on the
linux /boot/vmlinuz-linux root=UUID=0a3407de-014b-458b-b5c1-848e92a327a3 rw quiet splash
Ctrl+xto boot with these parameters.
To make the change persistent after reboot, the best practice is to:
/etc/default/gruband append your kernel options between the quotes in the
And then automatically re-generate the
You can check the parameters your system was booted up with by running
cat /proc/cmdline and see if it includes your changes.