dracut-functions.sh:find_kernel_modules_by_path() fixed updates search

"updates/*" path does not start with "/"
master
Harald Hoyer 2014-02-17 13:27:46 +01:00
parent cb802bfbc7
commit e8a7c9bc93
1 changed files with 1 additions and 1 deletions

View File

@ -1596,7 +1596,7 @@ find_kernel_modules_by_path () {
_OLDIFS=$IFS _OLDIFS=$IFS
IFS=: IFS=:
while read a rest; do while read a rest; do
[[ $a = */$1/* ]] || [[ $a = */updates/* ]] || continue [[ $a = */$1/* ]] || [[ $a = updates/* ]] || continue
printf "%s\n" "$srcmods/$a" printf "%s\n" "$srcmods/$a"
done < "$srcmods/modules.dep" done < "$srcmods/modules.dep"
IFS=$_OLDIFS IFS=$_OLDIFS