aboutsummaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorSergio Carlavilla Delgado <carlavilla@FreeBSD.org>2022-09-04 10:42:09 +0000
committerSergio Carlavilla Delgado <carlavilla@FreeBSD.org>2022-09-04 10:42:09 +0000
commitfd6b4cab9fec9bcc08d214002c41c8f1e8ff2a43 (patch)
treef5bfc88efc9d3dbc9da903d14d978a944c126f0a /documentation
parentd46632e1af2002089721a751d7655401f513fe43 (diff)
downloaddoc-fd6b4cab9fec9bcc08d214002c41c8f1e8ff2a43.tar.gz
doc-fd6b4cab9fec9bcc08d214002c41c8f1e8ff2a43.zip
Fix AsciiDoc format
Diffstat (limited to 'documentation')
-rw-r--r--documentation/content/en/books/handbook/kernelconfig/_index.adoc9
1 files changed, 6 insertions, 3 deletions
diff --git a/documentation/content/en/books/handbook/kernelconfig/_index.adoc b/documentation/content/en/books/handbook/kernelconfig/_index.adoc
index 02fd4c619c..922c6c5647 100644
--- a/documentation/content/en/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/en/books/handbook/kernelconfig/_index.adoc
@@ -267,29 +267,32 @@ To build a file which contains all available options, run the following command
Once the edits to the custom configuration file have been saved, the source code for the kernel can be compiled using the following steps:
[.procedure]
+====
*Procedure: Building a Kernel*
+
. Change to this directory:
+
[source,shell]
....
# cd /usr/src
....
-
++
. Compile the new kernel by specifying the name of the custom kernel configuration file:
+
[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
-
++
. Install the new kernel associated with the specified kernel configuration file. This command will copy the new kernel to [.filename]#/boot/kernel/kernel# and save the old kernel to [.filename]#/boot/kernel.old/kernel#:
+
[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
-
++
. Shutdown the system and reboot into the new kernel. If something goes wrong, refer to <<kernelconfig-noboot, The kernel does not boot>>.
+====
By default, when a custom kernel is compiled, all kernel modules are rebuilt.
To update a kernel faster or to build only custom modules, edit [.filename]#/etc/make.conf# before starting to build the kernel.