[systemd-devel] [PATCH] udev hwdb: Store binary database in libdir, not in /etc

Martin Pitt martin.pitt at ubuntu.com
Sun Jun 16 21:35:24 PDT 2013

Hello Tom,

replying on-list again, if you don't mind.

Tom Gundersen [2013-06-16 22:52 +0200]:
> On Sun, Jun 16, 2013 at 10:32 PM, Martin Pitt <martin.pitt at ubuntu.com> wrote:
> > We actually generate the hwdb during package build and ship hwdb.bin
> > statically.
> The problem with that is that local configuration in /etc/udev/hwdb.d/
> will be ignored, so it seems to me that the correct thing to do is to
> generate hwdb.bin in post-install.

This bit striked me as overengineered, so for now our udev package
doesn't even ship /etc/udev/. pci.ids or usb.ids aren't
user-configurable, and there has never been a case that we heard of
where the admin would have the need to change the name of a piece of

Michael proposed a compromise where the hwdb.bin would be in
/lib/udev, and as soon as there are files in /etc/udev/hwdb.d/ it
would move the cache to /etc/udev/. I can't say I like that very much
as it would introduce the same problem with just less predictability,
but I want to mention it for the records.

Anyway, Lennart's and your responses have demonstrated that putting
the cache into /etc wasn't by accident but deliberate; that's fine, so
let's keep it as it is, and we keep the patch downstream for now. As
it is it is trivial to revert or change as it only changes statically
shipped files in the package.

Thanks for the discussion!

Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

More information about the systemd-devel mailing list