From 226a52cfebb18bd591d610ff51f665ba0f537062 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sat, 2 Feb 2008 17:34:13 +0000 Subject: [PATCH] specify the kernel version when looking for a module for bug 208593 git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@582 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- ChangeLog | 3 +++ generic/modprobe | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6ec1085..c729013 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 02 Feb 2008; Andrew Gaffney generic/modprobe: + specify the kernel version when looking for a module for bug 208593 + 02 Feb 2008; Chris Gianelloni generic/initrd.defaults, generic/initrd.scripts: Removed runUdev, since we no longer use it. diff --git a/generic/modprobe b/generic/modprobe index ff676f7..1591c42 100755 --- a/generic/modprobe +++ b/generic/modprobe @@ -63,7 +63,7 @@ is_module_already_loaded() { real_mod_path() { # Find -name is no good since the return status is always zero - find /lib/modules | grep /"${1}${KSUFF}" + find "/lib/modules/${KV}" | grep /"${1}${KSUFF}" } modprobe2() { -- 2.26.2