Don't print when a module is explicitly omitted (by default)

dracut builds today are fairly verbose to start, but on top of
that many of the messages tend to liberally use the
exclamation point `!` which calls attention to them.

I see these a lot when looking at rpm-ostree build logs
and it'd be nicer if we were quiet when there wasn't
an actual problem.

In this specific case, if the builder is explicitly adding
`--omit=foo`, there's no reason for us to say:

`dracut: dracut module 'foo' will not be installed, because it's in the list to be omitted!`

We already print the command line to start, so the information
is there.

Demote this message to debug.
master
Colin Walters 2020-10-16 21:04:45 +00:00 committed by Daniel Molkentin
parent 5840c466dc
commit 6b8ee4fc37
1 changed files with 1 additions and 1 deletions

View File

@ -839,7 +839,7 @@ check_module() {
[[ $2 ]] || mods_checked_as_dep+=" $_mod "

if [[ " $omit_dracutmodules " == *\ $_mod\ * ]]; then
dinfo "dracut module '$_mod' will not be installed, because it's in the list to be omitted!"
ddebug "dracut module '$_mod' will not be installed, because it's in the list to be omitted!"
return 1
fi