From f080e928feed3f3c24b174ae5ed1eac351e8e325 Mon Sep 17 00:00:00 2001 From: puneetse <22071208+puneetse@users.noreply.github.com> Date: Thu, 14 Feb 2019 17:06:28 -0800 Subject: [PATCH] Add section on changing kernel parameters --- .../guides/maintenance/kernel-development.rst | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/source/clear-linux/guides/maintenance/kernel-development.rst b/source/clear-linux/guides/maintenance/kernel-development.rst index 1145dda8..265a4222 100644 --- a/source/clear-linux/guides/maintenance/kernel-development.rst +++ b/source/clear-linux/guides/maintenance/kernel-development.rst @@ -312,8 +312,7 @@ consider using a patch management tool in addition to Git such as #. Locate the section of the SPEC file further down that contains patch application and append your patch file number used in the step above. - In this example, the patch file is called - :file:`2001-my-patch-for-driver-A.patch` + In this example, patch2001 is added. .. code-block:: bash @@ -334,6 +333,33 @@ consider using a patch management tool in addition to Git such as +Modify kernel boot parameters +============================= +The kernel boot options are passed from the bootloader to the kernel with +command-line parameters. + +While temporarily changes can be made to kernel parameters on a running +system or on a during boot, you can also modify the default parameters that +are persistent and distributed with a customized kernel. + + +#. Open the kernel :file:`cmdline` file in an editor. + + .. code-block:: bash + + $EDITOR cmdline + +#. Make any desired change to the kernel parameters. + For example, you can remove the :command:`quiet` parameter to see more + verbose output of kernel log messages during the boot process. + +#. Commit and save the changes to the :file:`cmdline` file. + +See the +`Kernel parameters documentation`_ for a list of available parameters. + + + Build and install the kernel **************************** After changes have been made to the kernel SPEC file and config file, @@ -404,5 +430,6 @@ Related topics .. _`Quilt`: http://savannah.nongnu.org/projects/quilt .. _`clearlinux-pkgs GitHub`: https://github.com/clearlinux-pkgs?&q=linux .. _`kernel.org`: https://www.kernel.org/ +.. _`Kernel parameters documentation`: https://www.kernel.org/doc/Documentation/admin-guide/kernel-parameters.txt .. _`autospec`: https://clearlinux.org/documentation/clear-linux/concepts/autospec-about .. _`git-format-patch Documentation`: https://git-scm.com/docs/git-format-patch