dracut-functions: only dinfo() about missing firmware files
authorHarald Hoyer <harald@redhat.com>
Tue, 10 May 2011 09:18:58 +0000 (11:18 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 10 May 2011 09:31:45 +0000 (11:31 +0200)
People are scared about those messages, so only dwarn() if the module
is actually loaded on the system.

dracut-functions

index 765e623..e1c22f1 100755 (executable)
@@ -685,8 +685,13 @@ install_kmod_with_fw() {
             fi
         done
         if [[ $found != yes ]]; then
-            dwarn "Possible missing firmware \"${fw}\" for kernel module" \
-                "\"${mod}.ko\""
+            if ! grep -qe "\<${modname//-/_}\>" /proc/modules; then
+                dinfo "Possible missing firmware \"${fw}\" for kernel module" \
+                    "\"${modname}.ko\""
+            else
+                dwarn "Possible missing firmware \"${fw}\" for kernel module" \
+                    "\"${modname}.ko\""
+            fi
         fi
     done
     return 0