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

Tom Gundersen teg at jklm.no
Fri Jun 14 04:08:23 PDT 2013


On Fri, Jun 14, 2013 at 12:26 PM, Martin Pitt <martin.pitt at ubuntu.com> wrote:
> right now, udev stores its binary hwdb cache in /etc/udev/, which is
> ugly IMHO. This is neither user-editable nor configuration of any
> kind. It's just a cache file, and does not need to appear in backup,
> VCSes of /etc and the like.
>
> Can we move it to the libdir instead? Attached patch does that.

I agree that the current location is a bit ugly (and so is e.g.
/etc/ld.so.cache and /.readahead).

That said, I don't think libdir is appropriate as this data is not
under the control of the package manager (as it is generated at
install-time rather than at build-time, it would for instance not be
suitable for sharing between hosts). I guess localstatedir would be
another alternative, but the problem there is that it is not
(necessarily) available during early boot when this db is needed.

-t


More information about the systemd-devel mailing list