Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(install): log about missing firmware only once #2461

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

ddiss
Copy link
Contributor

@ddiss ddiss commented Jul 30, 2023

When attempting to locate a firmware path under each of the firwaredirs parent directories, Dracut logs an error for every missing path. Instead, only log the error if the firmware path isn't found under any of the firmwaredirs.

Checklist

  • I have tested it locally
  • I have reviewed and updated any documentation if relevant
  • I am providing new code and test(s) for it

When attempting to locate a firmware path under each of the firwaredirs
parent directories, Dracut logs an error for every missing path.
Instead, only log the error if the firmware path isn't found under any
of the firmwaredirs.

Signed-off-by: David Disseldorp <[email protected]>
}
}
if (!found_this) {
/* firmware path was not found in any firmwaredirs */
log_info("Missing firmware %s for kernel module %s",
Copy link
Collaborator

@LaszloGombos LaszloGombos Jul 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious, why did you remove "Possible" from the log message ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd assumed that "possible missing firmware" indicated that the search was not (yet) exhaustive. I.e. it's not present in this firmware subdir, but might show up in a different one.
With the new logic we've checked all available firmwaredirs and can conclusively state that the firmware is not found.

Thanks for the review!

Copy link
Member

@aafeijoo-suse aafeijoo-suse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@aafeijoo-suse aafeijoo-suse merged commit 1685576 into dracutdevs:master Jul 31, 2023
71 of 78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants