From owner-svn-doc-all@freebsd.org Fri May 12 18:33:08 2017 Return-Path: Delivered-To: svn-doc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0DEAFD6909C; Fri, 12 May 2017 18:33:08 +0000 (UTC) (envelope-from wblock@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B9C441000; Fri, 12 May 2017 18:33:07 +0000 (UTC) (envelope-from wblock@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v4CIX6Rs069547; Fri, 12 May 2017 18:33:06 GMT (envelope-from wblock@FreeBSD.org) Received: (from wblock@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v4CIX66x069546; Fri, 12 May 2017 18:33:06 GMT (envelope-from wblock@FreeBSD.org) Message-Id: <201705121833.v4CIX66x069546@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wblock set sender to wblock@FreeBSD.org using -f From: Warren Block Date: Fri, 12 May 2017 18:33:06 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r50252 - head/en_US.ISO8859-1/books/handbook/cutting-edge X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2017 18:33:08 -0000 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 amd64, giving a config file directory of /usr/src/sys/amd64/conf/. + + /usr/src can be deleted or + recreated, so it is preferable to keep custom kernel + config files in a separate directory, like + /root. Link the kernel config file + into the conf directory. If that + directory is deleted or overwritten, the kernel config + can be re-linked into the new one. + + A custom config file can be created by copying the GENERIC config file. In this example, the new custom kernel is for a storage server, so is named STORAGESERVER: - &prompt.root; cd /usr/src/sys/amd64/conf -&prompt.root; cp GENERIC STORAGESERVER + &prompt.root; cp /usr/src/sys/amd64/conf/GENERIC /root/STORAGESERVER +&prompt.root; cd /usr/src/sys/amd64/conf +&prompt.root; ln -s /root/STORAGESERVER . - STORAGESERVER is then edited, + /root/STORAGESERVER is then edited, adding or removing devices or options as shown in &man.config.5;.