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

feat(hwdb): install hwdb on demand when module is needed #27

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

pvalena
Copy link
Contributor

@pvalena pvalena commented Jul 23, 2023

Adding a module to install hwdb. Further extensions might make only selected part of hwdb installable, to save space. The module is not included by default.

Including the module adds 2MB of compressed data (on Fedora, the file has 12MB).

hwdb is needed in case of custom HW, like a keyboard/mouse or various interfaces.

Original PR: dracutdevs/dracut#1681

(Cherry-picked commit: ae2ab8c8a65c4ea4f4ad4e8c8f99d493a8f686eb)

Resolves: #1968118

@pvalena pvalena self-assigned this Jul 23, 2023
@pvalena
Copy link
Contributor Author

pvalena commented Jul 23, 2023

Upstream PR: dracutdevs/dracut#2443

@dtardon
Copy link
Member

dtardon commented Jul 24, 2023

I don't think this fixes the bug, as explained in https://github.com/dracutdevs/dracut/pull/2443/files#r1271851632.

Adding a module to install hwdb. Further extensions might make only selected
part of hwdb installable, to save space. The module is not included by default.

Including the module adds 2MB of compressed data (on Fedora, the file has 12MB).

hwdb is needed in case of custom HW, like a keyboard/mouse or various interfaces.

Original PR: dracutdevs/dracut#1681

(Cherry-picked commit: 062e739d89543a38d4b3e2cab155912bc4bf9e56)

Resolves: #1968118
@pvalena
Copy link
Contributor Author

pvalena commented Jul 24, 2023

@@ -1302,6 +1302,12 @@ if ! [[ -d "$udevdir" ]]; then
[[ -e /usr/lib/udev/collect ]] && udevdir=/usr/lib/udev
fi

[[ -d $udevconfdir ]] \
|| udevconfdir="$(pkg-config udev --variable=udevconfdir 2>/dev/null)"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what this does, but at least the fallback seems to work.

@pvalena pvalena merged commit 62fb051 into redhat-plumbers:main Jul 25, 2023
13 checks passed
@pvalena pvalena deleted the rhel-8-fix-1968118 branch July 25, 2023 11:24
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.

2 participants