Pcornel
Linux · Boot Process

Kernel Parameters

Cheat sheet · https://pcornel.dk/topic.php?topic=2734

Back to the Topic

Answer

Kernel parameters are options passed on the kernel command line (root=, quiet, console=, systemd.unit=, nomodeset, …). Runtime kernel tunables are set separately with sysctl.

Remember

Make them permanent in /etc/default/grub (GRUB_CMDLINE_LINUX) and regenerate, or with grubby --update-kernel=ALL --args=… on RHEL. Test once by editing the entry at the GRUB menu. Check what was used in /proc/cmdline.

First checks

  • systemd-analyze — boot time per stage
  • journalctl -b -p err — errors in this boot
  • journalctl --list-boots — previous boots
  • cat /proc/cmdline — kernel command line used

Verify in this order

parameter configured → bootloader passes it → kernel and systemd read /proc/cmdline → behaviour changes

Where it usually breaks

First mismatch in persistent unit/config/generator → dependency/order graph → systemd state → process/cgroup → socket/resource dependency → journal → consumer check; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2734

Confirmation

Confirm action

Continue?