From owner-freebsd-current Wed Oct 10 16:32:49 2001 Delivered-To: freebsd-current@freebsd.org Received: from alpo.whistle.com (s206m1.whistle.com [207.76.206.1]) by hub.freebsd.org (Postfix) with ESMTP id 95A7D37B401; Wed, 10 Oct 2001 16:32:46 -0700 (PDT) Received: from [207.76.207.129] (PBG4.whistle.com [207.76.207.129]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id QAA50287; Wed, 10 Oct 2001 16:32:11 -0700 (PDT) Mime-Version: 1.0 X-Sender: mark@207.76.206.1 Message-Id: In-Reply-To: <20011010230400.076163809@overcee.netplex.com.au> References: <20011010230400.076163809@overcee.netplex.com.au> Date: Wed, 10 Oct 2001 16:32:01 -0700 To: Peter Wemm , Warner Losh From: Mark Peek Subject: Re: kldxref broken, maybe? Cc: cjclark@alum.mit.edu, bmah@FreeBSD.ORG, Ruslan Ermilov , Bruce Evans , Boris Popov , freebsd-current@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 4:04 PM -0700 10/10/01, Peter Wemm wrote: >Warner Losh wrote: >> In message <20011010144919.N387@blossom.cjclark.org> "Crist J. >>Clark" writes: >> : I think just running 'installworld' twice will "fix" it. The error is >> : non-fatal, but not without implications. The only one that I am aware >> : of is that your system might have some trouble doing kldload(8) unless >> : it is given the full path of the module. >> >> Ummm, installworld N times won't fix things because the modules are >> are installed as part of installkernel. >> >> This is a database that should be rebuilt at boot time too. > >Absolutely. Any takers for a /etc/rc patch to break apart sysctl >kern.module_path by the ';' and do a ldconfig refresh at boot after the >filesystems are mounted? In theory we just need the / filesystem >read/write. Something like this? script_save_sep=$IFS IFS=";" for modpath in `sysctl -n kern.module_path`; do if [ -d $modpath ]; then kldxref $modpath fi done IFS="$script_save_sep" I would have provided a patch to /etc/rc but I didn't know when you would want it executed. Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message