From owner-freebsd-hackers Sun Nov 9 23:23:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA09660 for hackers-outgoing; Sun, 9 Nov 1997 23:23:24 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA09653; Sun, 9 Nov 1997 23:23:07 -0800 (PST) (envelope-from bde@zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.6.9) id SAA04061; Mon, 10 Nov 1997 18:19:48 +1100 Date: Mon, 10 Nov 1997 18:19:48 +1100 From: Bruce Evans Message-Id: <199711100719.SAA04061@godzilla.zeta.org.au> To: dg@root.com, itojun@itojun.org Subject: Re: 2.2.5 installation bug on 1gig machines Cc: bugs@FreeBSD.ORG, elh@svic.com, hackers@FreeBSD.ORG, toor@dyson.iquest.net Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> The problem with this is that the memory is already sized before >>'userconfig' is called (it needs to be that way for various reasons). This >>... > Current userconfig menu in the kernel is very nice (I was surprised > when I saw this for the first time), but I believe it is > good to have some device configuration menu/option/whatever in /boot. > > (on bsdi we can disable devices that way. Also, /boot will look > for the default settings in /etc/boot.default. In this way > the settings can be kept the same over kernel reconfiguration) FreeBSD with `options USERCONFIG_BOOT' can now keep settings in the text file /kernel.config. The file is left in boot loader memory by the boot loader, copied to kernel memory in locore.s and sourced by the UserConfig CLI at UserConfig time. Unfortunately, this has the same problem with memory sizing as interactive UserConfig. It should be easy enough to run at least the CLI part of UserConfig earlier (as early as ddb would be more than sufficient). It mainly needs to avoid using malloc(). It uses malloc() mainly to store changes (dset can't use the active changed values since some changes may be unrelated to configuration). Bruce