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

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