Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Mar 1999 09:41:51 +0200
From:      Ruslan Ermilov <ru@ucb.crimea.ua>
To:        Sheldon Hearn <sheldonh@iafrica.com>
Cc:        FreeBSD Hackers <hackers@freebsd.org>
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>
In-Reply-To: <42980.921428831@axl.noc.iafrica.com>; from Sheldon Hearn on Sun, Mar 14, 1999 at 06:27:11PM %2B0200
References:  <19990314180852.A7460@relay.ucb.crimea.ua> <42980.921428831@axl.noc.iafrica.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990315094151.B64525>