handbook/boot: fix unload + load example

The unload + load example in the 12.2.3 section doesn't seem to work.
The original problem was reported in https://reviews.freebsd.org/D24960.

Correct the example by using fully qualified paths since this is how it works
now. Tested in 12.1, 12.2 and 13-current.

Approved by:	docs (gbe@)
Differential Revision:		https://reviews.freebsd.org/27277
This commit is contained in:
Fernando Apesteguía 2020-11-23 18:57:58 +00:00
parent c825f24fdf
commit c4a6a8d0ed
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=54707

View file

@ -449,19 +449,21 @@ boot:</screen>
previous or another, specified kernel:</para>
<screen><userinput>unload</userinput>
<userinput>load <replaceable>kernel.old</replaceable></userinput></screen>
<userinput>load <replaceable>/path/to/kernelfile</replaceable></userinput></screen>
<para>Use <filename>kernel.GENERIC</filename> to refer to the
default kernel that comes with an installation, or
<filename>kernel.old</filename>, to refer to the previously
installed kernel before a system upgrade or before configuring
a custom kernel.</para>
<para>Use the qualified
<filename>/boot/GENERIC/kernel</filename> to refer to
the default kernel that comes with an installation, or
<filename>/boot/kernel.old/kernel</filename>, to refer to the
previously installed kernel before a system upgrade or before
configuring a custom kernel.</para>
<para>Use the following to load the usual modules with another
kernel:</para>
kernel. Note that in this case it is not necessary the
qualified name:</para>
<screen><userinput>unload</userinput>
<userinput>set kernel="<replaceable>kernel.old</replaceable>"</userinput>
<userinput>set kernel="<replaceable>mykernel</replaceable>"</userinput>
<userinput>boot-conf</userinput></screen>
<para>To load an automated kernel configuration script:</para>