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

Martin Pitt martin.pitt at ubuntu.com
Sun Jun 16 13:32:39 PDT 2013


Hello Lennart,

Lennart Poettering [2013-06-16  8:36 +0200]:
> As Tom pointed out, /usr is package manager territory and exactly the
> same on all machines (with the same set of package installed at
> least).

I wrote "libdir", but what the patch actually uses "udevlibdir, i. e.
/lib/udev/.

> It's supposed to be sharable between hosts. Doing recursive
> checksumming of /usr (modulo /usr/local) should yield the same
> results on all installations with the same package set.

We actually generate the hwdb during package build and ship hwdb.bin
statically. Right now there is no reason to ship the source files and
build the DB in package postinst. I guess you generate it in the
postinst, but that means that it's not a package manager controlled
file either way, regardless of where it's stored.

> Of course /etc isn't particularly beautiful for this either, since it
> doesn't match *conceptually* what else is stored on that partition, but
> at least it has the right *availability*, *shareability* and *access*
> guarantees.

/lib has exactly the same availability/shareability/access properties
AFAICS. Especially as the hwdb.bin file will be in exactly the same
directory as the other udev helpers.

Thanks,

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


More information about the systemd-devel mailing list