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

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