Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2001 16:32:01 -0700
From:      Mark Peek <mark@whistle.com>
To:        Peter Wemm <peter@wemm.org>, Warner Losh <imp@harmony.village.org>
Cc:        cjclark@alum.mit.edu, bmah@FreeBSD.ORG, Ruslan Ermilov <ru@FreeBSD.ORG>, Bruce Evans <bde@zeta.org.au>, Boris Popov <bp@FreeBSD.ORG>, freebsd-current@FreeBSD.ORG
Subject:   Re: kldxref broken, maybe?
Message-ID:  <p05101006b7ea88b4696c@[207.76.207.129]>
In-Reply-To: <20011010230400.076163809@overcee.netplex.com.au>
References:  <20011010230400.076163809@overcee.netplex.com.au>

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




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