Bug 66411 - /etc/udev/hwdb.bin doesn't belong in /etc
Summary: /etc/udev/hwdb.bin doesn't belong in /etc
Status: RESOLVED NOTABUG
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-30 19:16 UTC by william.jon.mccann
Modified: 2013-07-12 18:25 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description william.jon.mccann 2013-06-30 19:16:03 UTC
A smart dude I know put together a nice recommendation FHS. It included not storing system data in /etc. I think we should probably not have /etc/udev/hwdb.bin.
Comment 1 william.jon.mccann 2013-06-30 19:18:42 UTC
Was just pointed to http://lists.freedesktop.org/archives/systemd-devel/2013-June/011354.html
Comment 2 Kay Sievers 2013-06-30 19:20:29 UTC
It needs to be available during early-boot, just like /etc/ld.so.cache,

It cannot be in /var, because /var might be mounted only later.

The database consists of data from /etc and /usr/lib, so it cannot be stored
in /usr, because we need to be able to share /usr independent of /etc.

We have no better place to store it.
Comment 3 william.jon.mccann 2013-06-30 19:31:21 UTC
So, it is a database cache. Is the plan to store others like that in /etc too? This seems like a bad precedent and may not help us define new rules for what can go into /etc. Also, currently this file is "owned" by the systemd package on Fedora which just seems wrong, no?
Comment 4 Kay Sievers 2013-06-30 19:49:49 UTC
It is a database, yes. Not a cache.

Early boot things like systemd/udev needs to live in /etc, we have no better
place for it. This rule applies only to things like systemd/udev which
bring up the system and can't rely on /var being available, nothing else
should use /etc that way.

It's systemd's database, so it should be owned by systemd.

If you want to change it introduce a top-level /data directory or whatever
it would be named, I personally don't thinkit's worth the trouble, will not
fight for it, but would change systemd to use it if it would appear.
Comment 5 Ralph_Ulrich 2013-07-12 18:25:16 UTC
/lib/syscache


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.