svn commit: r50252 - head/en_US.ISO8859-1/books/handbook/cutting-edge
Warren Block
wblock at FreeBSD.org
Fri May 12 18:33:08 UTC 2017
Author: wblock
Date: Fri May 12 18:33:06 2017
New Revision: 50252
URL: https://svnweb.freebsd.org/changeset/doc/50252
Log:
Show linking a custom kernel config file from another directory.
Modified:
head/en_US.ISO8859-1/books/handbook/cutting-edge/chapter.xml
Modified: head/en_US.ISO8859-1/books/handbook/cutting-edge/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/handbook/cutting-edge/chapter.xml Fri May 12 17:30:55 2017 (r50251)
+++ head/en_US.ISO8859-1/books/handbook/cutting-edge/chapter.xml Fri May 12 18:33:06 2017 (r50252)
@@ -1398,15 +1398,26 @@ Working Copy Root Path: /usr/src
<literal>amd64</literal>, giving a config file directory of
<filename>/usr/src/sys/<replaceable>amd64</replaceable>/conf/</filename>.</para>
+ <tip>
+ <para><filename>/usr/src</filename> can be deleted or
+ recreated, so it is preferable to keep custom kernel
+ config files in a separate directory, like
+ <filename>/root</filename>. Link the kernel config file
+ into the <filename>conf</filename> directory. If that
+ directory is deleted or overwritten, the kernel config
+ can be re-linked into the new one.</para>
+ </tip>
+
<para>A custom config file can be created by copying the
<filename>GENERIC</filename> config file. In this example,
the new custom kernel is for a storage server, so is named
<filename>STORAGESERVER</filename>:</para>
- <screen>&prompt.root; <userinput>cd /usr/src/sys/amd64/conf</userinput>
-&prompt.root; <userinput>cp GENERIC STORAGESERVER</userinput></screen>
+ <screen>&prompt.root; <userinput>cp /usr/src/sys/amd64/conf/GENERIC /root/STORAGESERVER</userinput>
+&prompt.root; <userinput>cd /usr/src/sys/amd64/conf</userinput>
+&prompt.root; <userinput>ln -s /root/STORAGESERVER .</userinput></screen>
- <para><filename>STORAGESERVER</filename> is then edited,
+ <para><filename>/root/STORAGESERVER</filename> is then edited,
adding or removing devices or options as shown in
&man.config.5;.</para>
More information about the svn-doc-all
mailing list