From: Joe Lawrence Date: Thu, 24 Jan 2013 22:26:43 +0000 (-0500) Subject: Support out-of-tree and updated drivers in initramfs creation X-Git-Tag: 026~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa9f15e3be811bd1e55938fa92a110f9d389342d;p=thirdparty%2Fdracut.git Support out-of-tree and updated drivers in initramfs creation The find_kernel_modules_by_path function shouldn't filter out modules not located underneath the /lib/modules/ver/kernel directory as out-of-tree drivers may reside in /lib/modules/ver/extra and updated drivers in /lib/modules/ver/updates. Signed-off-by: Joe Lawrence --- diff --git a/dracut-functions.sh b/dracut-functions.sh index e23db7632..f7e3ec808 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -1502,7 +1502,7 @@ find_kernel_modules_by_path () ( _OLDIFS=$IFS IFS=: while read a rest; do - [[ $a = kernel*/$1/* ]] || continue + [[ $a = */$1/* ]] || continue echo $srcmods/$a done < $srcmods/modules.dep IFS=$_OLDIFS