From: Harald Hoyer Date: Tue, 10 May 2011 09:18:58 +0000 (+0200) Subject: dracut-functions: only dinfo() about missing firmware files X-Git-Tag: 011~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2cdb570ae659716ef4bc34e024391de41a978d7;p=thirdparty%2Fdracut.git dracut-functions: only dinfo() about missing firmware files People are scared about those messages, so only dwarn() if the module is actually loaded on the system. --- diff --git a/dracut-functions b/dracut-functions index 765e623b4..e1c22f185 100755 --- a/dracut-functions +++ b/dracut-functions @@ -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