dracut.sh: also search uevent's for MODALIAS

master
Harald Hoyer 2013-09-13 17:34:18 +02:00
parent 63f3bcd852
commit fc68c87afa
1 changed files with 8 additions and 0 deletions

View File

@ -923,6 +923,14 @@ if [[ $hostonly ]]; then
while read m; do
modalias="$(<"$m")" && [[ $modalias ]] && host_modalias["$modalias"]=1
done < "$initdir/.modalias"
find /sys/devices/ -name uevent -print > "$initdir/.modalias"
while read m; do
while read line; do
[[ "$line" != MODALIAS\=* ]] && continue
modalias="${line##MODALIAS=}" && [[ $modalias ]] && host_modalias["$modalias"]=1
done < "$m"
done < "$initdir/.modalias"

rm -f -- "$initdir/.modalias"

# check /proc/modules