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.
master
Harald Hoyer 2011-05-10 11:18:58 +02:00
parent 9a5393ac7e
commit e2cdb570ae
1 changed files with 7 additions and 2 deletions

View File

@ -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