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

Martin Pitt martin.pitt at ubuntu.com
Mon Jun 17 14:06:42 PDT 2013


Lennart Poettering [2013-06-17 18:28 +0200]:
> On Mon, 17.06.13 06:41, Martin Pitt (martin.pitt at ubuntu.com) wrote:
> 
> > > No, by placing it in /usr (or /lib, for old distributions which haven't
> > > done the /usr merge yet) you break the rule that the files the systemd
> > > package installs in /usr should be the same on all installations of the
> > > same package version.
> > 
> > It doesn't at the moment, as the file is in the package it is the same
> > on all installations (of the same architecture).
> 
> I cannot parse this.
> 
> Let me try to explain this a different way: in RPM-speak the files in
> /etc should ideally either be %ghost'ed or %config'ed, and the ones in
> /usr should be neither. 

That's the situation with a dynamically created file as you have in
current Fedora. But the current Ubuntu package just ships a static
/lib/udev/hwdb.bin, thus it is perfectly shareable between
installations and thus Tom's concern about not being a package-owned
file doesn't apply. That's of course unrelated to the question whether
we should move to dynamic creation of that file, at which point it
wouldn't be suited very well in /lib (but still much better than in
/etc).

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