How do I alter the kernel cmdline and rebuild grub2 on CentOS 7?

 

The kernel command line (cmdline) can be edited in "/etc/default/grub" (GRUB_CMDLINE_LINUX).

 

Once edited you will need to rebuild the config for grub2 using the following command

 

grub2-mkconfig --output=/boot/grub2/grub.cfg

 

You can then reboot and the new cmdline will be used (this can be verified by "cat /proc/cmdline").

 

 

You can comment on this FAQ