From owner-svn-src-all@FreeBSD.ORG Mon Jul 11 00:53:32 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id B4C61106564A; Mon, 11 Jul 2011 00:53:32 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 65-241-43-4.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id EE0ED15363F; Mon, 11 Jul 2011 00:53:31 +0000 (UTC) Message-ID: <4E1A498B.9080506@FreeBSD.org> Date: Sun, 10 Jul 2011 17:53:31 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110706 Thunderbird/5.0 MIME-Version: 1.0 To: Pan Tsu References: <201107102347.p6ANl3qK066321__21248.7196004533$1310341655$gmane$org@svn.freebsd.org> <86ipr9sl4j.fsf@gmail.com> In-Reply-To: <86ipr9sl4j.fsf@gmail.com> X-Enigmail-Version: 1.2pre OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r223917 - head/etc/rc.d X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2011 00:53:32 -0000 On 07/10/2011 17:42, Pan Tsu wrote: > Doug Barton writes: > >> Author: dougb >> Date: Sun Jul 10 23:47:03 2011 >> New Revision: 223917 >> URL: http://svn.freebsd.org/changeset/base/223917 >> >> Log: >> Make sure we load kernel modules from the same path as the running kernel >> >> Modified: >> head/etc/rc.d/kld >> >> Modified: head/etc/rc.d/kld >> ============================================================================== >> --- head/etc/rc.d/kld Sun Jul 10 22:09:53 2011 (r223916) >> +++ head/etc/rc.d/kld Sun Jul 10 23:47:03 2011 (r223917) >> @@ -41,11 +41,24 @@ kld_start() >> { >> [ -n "$kld_list" ] || return >> >> - local _kld >> + local _kernel_path _module_path _kld _path >> + >> + _kernel_path=`$SYSCTL_N kern.bootfile` >> + _kernel_path="${_kernel_path%/*}" >> + >> + _module_path=`$SYSCTL_N kern.module_path` >> + _module_path="${_module_path#*\;}" >> + _module_path="$_kernel_path `ltr $_module_path \; ' '`" > [...] > > Doesn't /boot/support.4th already populates kern.module_path with > the path of successfully booted kernel? How is this different? When you test it, what happens? -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/