Blame SOURCES/0482-dracut.sh-skip-empty-lines-in-proc-modules.patch

ace748
From b120b0c116591c80503404cd4d2f630508ce9b34 Mon Sep 17 00:00:00 2001
ace748
From: Harald Hoyer <harald@redhat.com>
ace748
Date: Wed, 11 Jan 2017 13:40:13 +0100
ace748
Subject: [PATCH] dracut.sh: skip empty lines in /proc/modules
ace748
ace748
https://bugzilla.redhat.com/show_bug.cgi?id=1405025
ace748
---
ace748
 dracut.sh | 1 +
ace748
 1 file changed, 1 insertion(+)
ace748
ace748
diff --git a/dracut.sh b/dracut.sh
ace748
index 90ea9c3..e45dc7b 100755
ace748
--- a/dracut.sh
ace748
+++ b/dracut.sh
ace748
@@ -1132,6 +1132,7 @@ if [[ $hostonly ]]; then
ace748
     # check /proc/modules
ace748
     declare -A host_modules
ace748
     while read m rest; do
ace748
+        [ -z "$m" ] && continue
ace748
         host_modules["$m"]=1
ace748
     done 
ace748
 fi