Skip to content

Precompiled hwdb#223

Merged
bbonev merged 1 commit intoeudev-project:masterfrom
bbonev:precompiled_hwdb
May 31, 2022
Merged

Precompiled hwdb#223
bbonev merged 1 commit intoeudev-project:masterfrom
bbonev:precompiled_hwdb

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
Collaborator

@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