Blame SOURCES/0003-dracut.sh-also-search-uevent-s-for-MODALIAS.patch

18971c
From af34b260474c551a45a6fa4ae8719622f1e35910 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Fri, 13 Sep 2013 17:34:18 +0200
18971c
Subject: [PATCH] dracut.sh: also search uevent's for MODALIAS
18971c
18971c
---
18971c
 dracut.sh | 8 ++++++++
18971c
 1 file changed, 8 insertions(+)
18971c
18971c
diff --git a/dracut.sh b/dracut.sh
18971c
index fd278466..ce39151c 100755
18971c
--- a/dracut.sh
18971c
+++ b/dracut.sh
18971c
@@ -923,6 +923,14 @@ if [[ $hostonly ]]; then
18971c
     while read m; do
18971c
         modalias="$(<"$m")" && [[ $modalias ]] && host_modalias["$modalias"]=1
18971c
     done < "$initdir/.modalias"
18971c
+    find  /sys/devices/ -name uevent -print > "$initdir/.modalias"
18971c
+    while read m; do
18971c
+        while read line; do
18971c
+            [[ "$line" != MODALIAS\=* ]] && continue
18971c
+            modalias="${line##MODALIAS=}" && [[ $modalias ]] && host_modalias["$modalias"]=1
18971c
+        done < "$m"
18971c
+    done < "$initdir/.modalias"
18971c
+
18971c
     rm -f -- "$initdir/.modalias"
18971c
 
18971c
     # check /proc/modules