[systemd-devel] [PATCH] udev hwdb: Store binary database in libdir, not in /etc
Lennart Poettering
lennart at poettering.net
Mon Jun 17 13:50:48 PDT 2013
On Mon, 17.06.13 22:12, Tom Gundersen (teg at jklm.no) wrote:
> > The only case, where this scheme would fail, is if you backup and
> > restore a system to a different partitioning scheme.
>
> I agree with Lennart that we don't want this scheme, but rather
> something predictable.
>
> How about Colin's suggestion of putting hwdb.bin (and similar files
> that cannot always be in /var/cache) in /etc/cache? Or if anyone have
> the stomach for a huge fight, try to convince everyone of the
> usefulness of /cache?
Well, this is about very few files only. AFAICS only systemd/udev, kmod,
ld.so need binary caches around this early during boot. It
sounds a bit like overkill to introduce an entirely new root level
hierarchy for that.
Note that beyond caches there are a number of non-text-files in
/etc. For example /etc/localtime,
/etc/selinux/targeted/policy/policy.27, /etc/pki/*.db, /etc/aliases.db,
/etc/ld.so.cache, /etc/prelink.cache and so on. I am not convinced that
text file vs. binary file is the best check to decide whether something
belongs in /etc or not.
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list