From owner-freebsd-hackers Sun Mar 14 23:47:23 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [212.110.138.1]) by hub.freebsd.org (Postfix) with ESMTP id 79789150A2 for ; Sun, 14 Mar 1999 23:46:11 -0800 (PST) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.2/8.9.2/UCB) id JAA69603; Mon, 15 Mar 1999 09:41:51 +0200 (EET) (envelope-from ru) Date: Mon, 15 Mar 1999 09:41:51 +0200 From: Ruslan Ermilov To: Sheldon Hearn Cc: FreeBSD Hackers Subject: Re: kern/9670: kernel config at boot time via -c gives save option but looses settings Message-ID: <19990315094151.B64525@relay.ucb.crimea.ua> Mail-Followup-To: Sheldon Hearn , FreeBSD Hackers References: <19990314180852.A7460@relay.ucb.crimea.ua> <42980.921428831@axl.noc.iafrica.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Mailer: Mutt 0.95.3i In-Reply-To: <42980.921428831@axl.noc.iafrica.com>; from Sheldon Hearn on Sun, Mar 14, 1999 at 06:27:11PM +0200 X-Operating-System: FreeBSD 3.1-STABLE i386 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 14, 1999 at 06:27:11PM +0200, Sheldon Hearn wrote: >=20 >=20 > On Sun, 14 Mar 1999 18:08:52 +0200, Ruslan Ermilov wrote: >=20 > > I've made `boot -c' changes, and `sysctl machdep.uc_devlist' produces > > non-null output, but the /kernel.config is empty. >=20 > I don't know what you're talking about. The ERRATA notice says: >=20 man 8 kget, if you're running CURRENT. `cd /usr/src/sbin/kget; nroff -man kget.8', if you don't. > | Fix: The change information is being written out, in fact, but to the > | wrong location. move /kernel.config to /boot/kernel.conf (if it > | exists, otherwise there were no changes to save) and add the > | following lines to /boot/loader.rc: > |=20 > | load /kernel > | load -t userconfig_script /boot/kernel.conf > | autoboot 5 >=20 > What has ``sysctl machdep.uc_devlist'' got to do with anything? When I > do that, I get=20 >=20 > sysctl: unknown oid 'machdep.uc_devlist' >=20 Then you're not running(tracking) RELENG_3 ;-) # uname -r 3.1-STABLE # sysctl machdep.uc_devlist machdep.uc_devlist: =0B > The way to test whether the instructions in the ERRATA notice are > working is to make changes with -c and then check the contents of > /boot/kernel.conf . I did this (`sysctl machdep.uc_devlist' is not empty), but neither /kernel.config nor /boot/boot.conf are created. "Who" writes these changes into /kernel.config and/or /boot/boot.conf? In 2.2.8 stage2 boot (boot2) was reading info from /kernel.config, and `dset' was used in /etc/rc to update the /kernel.config with UserConfig changes. I think you should test this on 3.1-RELEASE(STABLE) and re-open the PR. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message