From owner-freebsd-current@FreeBSD.ORG Wed Aug 11 22:35:18 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6097516A56C; Wed, 11 Aug 2004 22:35:18 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E39C43D31; Wed, 11 Aug 2004 22:35:17 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i7BMZACK055429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Aug 2004 01:35:11 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i7BMZ7ax027048; Thu, 12 Aug 2004 01:35:07 +0300 (EEST) (envelope-from ru) Date: Thu, 12 Aug 2004 01:35:07 +0300 From: Ruslan Ermilov To: John-Mark Gurney , "Daniel C. Sobral" Message-ID: <20040811223507.GD96867@ip.net.ua> References: <200408061506.i76F66sl018247@repoman.freebsd.org> <20040809124153.GN628@darkness.comp.waw.pl> <20040809173814.GG991@funkthat.com> <20040810103007.GB30151@darkness.comp.waw.pl> <20040810144135.GN991@funkthat.com> <20040810154715.GC19937@ip.net.ua> <20040810173617.GQ991@funkthat.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yudcn1FV7Hsu/q59" Content-Disposition: inline In-Reply-To: <20040810173617.GQ991@funkthat.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new cc: current@FreeBSD.org Subject: Re: cvs commit: src/sys/boot/common help.common src/sys/boot/forth loader.conf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 22:35:18 -0000 --yudcn1FV7Hsu/q59 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 10, 2004 at 10:36:17AM -0700, John-Mark Gurney wrote: > Ruslan Ermilov wrote this message on Tue, Aug 10, 2004 at 18:47 +0300: > > > Have you tried booting another kernel? I can't see how your machine > > > could of booted /boot/kernel.old ever with kernel modules, if your > > > machine is currently having troubles with loading kernel modules. > > > (Since kernel.old would not have been added to module path, since it > > > isn't being now, and the correct modules would never load.) > > >=20 > > Do you get the correct module_path with beastie_disable=3D"YES" set in > > /boot/loader.conf? (Sorry, but I cannot try it right now.) >=20 > Yep, I do: > # sysctl kern.module_path > kern.module_path: /boot/kernel;/boot/modules > # kldload pf > # kldunload pf > # grep beastie /boot/loader.conf > beastie_disable=3D"YES" > # uname -a > FreeBSD carbon.funkthat.com 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Sun Aug = 8 22:07:02 PDT 2004 jmg@carbon.funkthat.com:/a/obj/a/src/sys/GENERIC i= 386 >=20 OK, now we have a real problem here. I have updated my system today, and when I let it boot automatically, it didn't result in module_path set to point to the kernel directory, as many others here have reported. I did some experimenting though. If I enter the loader(8) prompt and type unload boot /boot/kernel/kernel then it'd set module_path correctly. Finally, I've been able to find the root of this problem: this is rather an old and sad story about /boot/loader.rc -- the latter does not get updated automatically by an installworld. I had my /boot/loader.rc matching revision 1.1 of sys/boot/i386/loader/loader.rc. Now (because I knew this magic) after I've manually updated it to: $ ident /boot/loader.rc /boot/loader.rc: $FreeBSD: src/sys/boot/i386/loader/loader.rc,v 1.2 2003/11/21 19:01:02= dcs Exp $ it all works as you intended. I think a lot of people will be bite by this (since installworld doesn't update this file if it exists). I suggest that at least a HEADS UP is sent and the UPDATING entry is made, describing symptoms and a solution. You can reproduce it yourself by downgrading your /boot/loader.rc to rev. 1.1, and trying to reboot. I have beastie_enable=3D"NO" set in my /boot/loader.conf, FWIW. I didn't try without it. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --yudcn1FV7Hsu/q59 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBGp8bqRfpzJluFF4RAkRWAJ9lIfC5TaaKeaQmP6umsLZCAehUXgCfWaov cZt1stBdQ6EG6V+j8BRJEZY= =7EEH -----END PGP SIGNATURE----- --yudcn1FV7Hsu/q59--