From owner-freebsd-questions@FreeBSD.ORG Sun Dec 26 13:29:51 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 787991065674 for ; Sun, 26 Dec 2010 13:29:51 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id ED32D8FC16 for ; Sun, 26 Dec 2010 13:29:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id oBQDTlm6080550; Mon, 27 Dec 2010 00:29:48 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Mon, 27 Dec 2010 00:29:47 +1100 (EST) From: Ian Smith To: Rob In-Reply-To: <20101226120033.CC15F1065773@hub.freebsd.org> Message-ID: <20101226235319.Y30408@sola.nimnet.asn.au> References: <20101226120033.CC15F1065773@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: kernel config file according to config(5): inconsistent ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Dec 2010 13:29:51 -0000 In freebsd-questions Digest, Vol 342, Issue 9, Message: 1 On Sat, 25 Dec 2010 04:38:08 -0800 Rob wrote: > I read the guidelines in the man pages of config(5) on how to make a customized > kernel config file: > > nooption name [, name [...]] > nooptions name [, name [...]] > Remove the specified kernel options from the list of previously > defined options. This directive can be used to cancel the > effects of option or options directives in files included using > include. > > So I put following in my MYKERNEL config file: > > include GENERIC > > nocpu I486_CPU > nocpu I586_CPU > ident MYKERNEL > > nomakeoptions DEBUG > > nooptions MD_ROOT > nooptions NFSCLIENT , NFSSERVER , NFSLOCKD , NFS_ROOT > nooptions MSDOSFS , CD9660 > nooptions PROCFS , PSEUDOFS > > The comma separated items seemed to cause an error when I do the buildkernel. > If I remove the commas and make a 'nooptions' per item, then it is OK. > > Something seems to be inconsistent here, right? > > Same inconsistency for "nodevices" with the syntax in the manpages and the real > config file.... Arguably unforgiving parsing and/or imprecise description. Try eg: nooptions NFSCLIENT, NFSSERVER, NFSLOCKD, NFS_ROOT with no space[s] before comma[s], as is generally conventional. cheers, Ian