From owner-cvs-all@FreeBSD.ORG Sun Oct 30 13:52:31 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5364E16A421; Sun, 30 Oct 2005 13:52:31 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3379743D4C; Sun, 30 Oct 2005 13:52:25 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id j9UDqNom044898; Sun, 30 Oct 2005 06:52:24 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <4364D017.1050605@samsco.org> Date: Sun, 30 Oct 2005 06:52:23 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050615 X-Accept-Language: en-us, en MIME-Version: 1.0 To: obrien@FreeBSD.org References: <200510271734.j9RHYZAk015054@repoman.freebsd.org> <20051030062148.GA76667@dragon.NUXI.org> In-Reply-To: <20051030062148.GA76667@dragon.NUXI.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on pooker.samsco.org Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, John Baldwin Subject: Re: cvs commit: src/sys/i386/conf DEFAULTS GENERIC X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2005 13:52:31 -0000 David O'Brien wrote: > On Thu, Oct 27, 2005 at 05:34:35PM +0000, John Baldwin wrote: > >>jhb 2005-10-27 17:34:35 UTC >> >> FreeBSD src repository >> >> Modified files: >> sys/i386/conf GENERIC >> Added files: >> sys/i386/conf DEFAULTS >> Log: >> Create a default kernel config for i386 and move 'device isa' and >> 'device npx' (both of which aren't really optional right now) and >> 'device io' and 'device mem' (to preserve POLA for 4.x users upgrading >> to 6.0) from GENERIC into DEFAULTS. > > > I may be missing something. I don't quite follow the benefit of the new > 'DEFAULTS' file. It's been 2+ years since the io and mem devices were made optional, and the mailing lists are still filled with people who don't understand why X doesn't work after they remove them from their kernel config. We expect there to be a large migration of people from 4.x to 6.0 who never tracked the change in 5.x, or who want to bring their 4.x kernel config files over with as few surprises as possible, so this will make their lives easier. > I'm also curious why we don't explicitly 'include' > DEFAULTS in GENERIC vs. the new automagic include feature. Because if it was specifically mentioned in the GENERIC config file then it would be deleted by people who don't understand what it does or why it's important, and it would be missed by people writing config files from scratch or migrating from previous versions of FreeBSD. > > I wonder if someone might trip over this not realizing everything that > winds up in their config file. I for one have been using io.ko and > mem.ko after coping GENERIC to FOO and removing the 'io' and 'mem' > devices. > If you delete the DEFAULTS file then config will silently be happy, though you'll need to manually add the isa and npx devices to your kernel config. You can also use the 'nodevice' directives to manually exclude the io and mem devices from your config. Contrary to Mark's response, I'd recommend doing this instead of editing DEFAULTS directly. Scott