Show linking a custom kernel config file from another directory.
This commit is contained in:
parent
a7640c8244
commit
aa76ce37db
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=50252
1 changed files with 14 additions and 3 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue