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

Precompiled hwdb #223

Merged
merged 1 commit into from
May 31, 2022
Merged

Precompiled hwdb #223

merged 1 commit into from
May 31, 2022

Conversation

bbonev
Copy link
Member

@bbonev bbonev commented Apr 6, 2022

This one depends on #222

@bbonev bbonev marked this pull request as ready for review May 26, 2022 16:24
From: Martin Pitt <martin.pitt@ubuntu.com>
Date: Fri, 17 Oct 2014 15:01:01 +0200
Subject: udev hwdb: Support shipping pre-compiled database in system images

In some cases it is preferable to ship system images with a pre-generated
binary hwdb database, to avoid having to build it at runtime, avoid shipping
the source hwdb files, or avoid storing large binary files in /etc.

So if hwdb.bin does not exist in /etc/udev/, fall back to looking for it in
UDEVLIBEXECDIR. This keeps the possibility to add files to /etc/udev/hwdb.d/
and re-generating the database which trumps the one in /usr/lib.

Add a new --usr flag to "udevadm hwdb --update" which puts the database
into UDEVLIBEXECDIR.

Adjust systemd-udev-hwdb-update.service to not generate the file in /etc if we
already have it in /usr.
Anto:
@bbonev bbonev force-pushed the precompiled_hwdb branch from ba2e7b2 to b11e438 Compare May 26, 2022 16:26
@bbonev bbonev requested a review from ArsenArsen May 31, 2022 14:52
Copy link
Member

@ArsenArsen ArsenArsen left a comment

Choose a reason for hiding this comment

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

LGTM

@bbonev bbonev merged commit cd61841 into eudev-project:master May 31, 2022
@bbonev bbonev deleted the precompiled_hwdb branch June 11, 2022 14:50
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