Bug 97796 - moduledb of module-rebuild should be in /var/lib instead of /usr/share
|
Bug#:
97796
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: johnm@gentoo.org
|
Reported By: betelgeuse@gentoo.org
|
|
Component: Core system
|
|
|
URL:
|
|
Summary: moduledb of module-rebuild should be in /var/lib instead of /usr/share
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2005-07-03 02:40 0000
|
R_MODULES="${ROOT}/usr/share/module-rebuild/moduledb"
/usr/share is only for static data. /var/lib should be used for changing data. If I wanted, I should be able to mount /usr read-only.
that is of course assuming we follow the FHS. Which (strictly speaking) we
dont.
Will look at this sometime.
We don't strictly follow FHS, but I think this thing is followed also on
Gentoo.
There is a question about this in the end of mentoring quiz (12).
I can make patches for this, if you are not interested.
fixed in cvs. please try 0.5 shortly.
I think you should have moved the moduledb from /usr/share to /var/lib in the
ebuild. Now everyone has to repopulate their moduledb and the old moduledb is
left as a cruft to the system.
I considered doing that actually, but decided to make a clean break away from
it.
There are two parts to this. the eclass linux-mod and the module-rebuild
script.
in this case, the eclass handles what should be done re: the moduledb database.
if module-rebuild hasnt already repopulated then it moves the old database to
the new location. when this goes stable, it would be prefered that we
re-populate than to move the original one.
in any case, it removes the old cruft.