From owner-freebsd-hackers Sun Mar 14 8:11:31 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 012C714DA4; Sun, 14 Mar 1999 08:09:23 -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 SAA07744; Sun, 14 Mar 1999 18:08:52 +0200 (EET) (envelope-from ru) Date: Sun, 14 Mar 1999 18:08:52 +0200 From: Ruslan Ermilov To: sheldonh@freebsd.org Cc: FreeBSD Hackers Subject: Re: kern/9670: kernel config at boot time via -c gives save option but looses settings Message-ID: <19990314180852.A7460@relay.ucb.crimea.ua> Mail-Followup-To: sheldonh@freebsd.org, FreeBSD Hackers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i X-Operating-System: FreeBSD 3.1-STABLE i386 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! You wrote: State-Changed-From-To: open->closed State-Changed-By: sheldonh State-Changed-When: Sun Mar 14 04:26:00 PST 1999 State-Changed-Why: See ftp://ftp.freebsd.org/pub/FreeBSD/3.1-RELEASE/ERRATA.TXT o Kernel change information is not saved in the new kernel, even though this is claimed to work in the docs. 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: load /kernel load -t userconfig_script /boot/kernel.conf autoboot 5 This will cause the kernel change information to be read in and used properly (and you just learned a little about the new 3-stage loader in the process, so the exercise wasn't a total loss). ---------------------------------------- I can't get your fix to work. I've made `boot -c' changes, and `sysctl machdep.uc_devlist' produces non-null output, but the /kernel.config is empty. Any clue? Cheers, -- 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