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

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