FS#9564 - [rlocate] doesn't work with kernel 2.6.24-ARCH

Attached to Project: Community Packages
Opened by Julius Bullinger (kwurzel) - Wednesday, 13 February 2008, 14:38 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 03 June 2008, 14:49 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Roman Kyrylych (Romashka)
Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After updatet kernel26 to 2.6.24-ARCH, rlocate doesn't work anymore (installed after http://wiki.archlinux.org/index.php/Rlocate).

startup: "FATAL: Module rlocate not found"

# uname -r
2.6.24-ARCH
# modprobe rlocate
FATAL: Module rlocate not found.
# /etc/init.d/rlocate start
-bash: /etc/init.d/rlocate: Datei oder Verzeichnis nicht gefunden
# locate arch
locate: fatal error: Could not find user database '/var/lib/rlocate/rlocate.db': No such file or directory
# updatedb
updatedb: update_proc_info: cannot open /proc/rlocate for writing: No such file or directory. Module not loaded?
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 03 June 2008, 14:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  works whit 2.6.25-ARCH
Comment by Roman Kyrylych (Romashka) - Wednesday, 13 February 2008, 14:52 GMT
This is because it haven't been rebuilt for 2.6.24 kernel.
AFAIK there are issues related to LSMs made non-modular in .24 :-(
Comment by Julius Bullinger (kwurzel) - Wednesday, 13 February 2008, 14:55 GMT
Will it work if I build it myself from AUR, or is it necessary to change it?
Comment by Roman Kyrylych (Romashka) - Wednesday, 13 February 2008, 15:12 GMT
Sorry, it won't work, google "rlocate 2.6.24" to see that this can be solved only by making LSMs modular again (which will revert the decission of vanilla kernel devs and thus won't be in our kernel package).
For now, I suggest use mlocate, which is faster than slocate but doesn't use a kernel module as rlocate
(mlocate replaced slocate in Core some time ago)
Comment by Attila (attila) - Wednesday, 13 February 2008, 16:04 GMT
See here http://bugs.archlinux.org/task/9447 to know what you have to do. Without a patch rlocate won't be work and you need to do this in your own kernel package. Than, here with 2.6.24.2, the rlocate module compiles and works. I can't speak for the ARCH kernel package but i think it should work too if you compile it from abs.

Little hint (if it is not a write error): You have to start it with "/etc/rc.d/rlocate start"
Comment by Roman Kyrylych (Romashka) - Wednesday, 13 February 2008, 19:53 GMT
OK, after improving a half-fix from Gentoo I've managed not only to compile rlocate but also get it modprobed and rlocate device created!
Please test this package ASAP: http://dev.archlinux.org/~roman/rlocate-0.5.6-3-i686.pkg.tar.gz
And confirm if rlocate daemon really works (I don't use it so I may not notice something).
Comment by Attila (attila) - Thursday, 14 February 2008, 19:58 GMT
  • Field changed: Percent Complete (100% → 0%)
My own test was not succesfull:
- modprobe rlocate: OK
- /etc/rc.d/rlocated start: OK
- updatedb: OK (No error messages)
- touch HALLO_rlocate
- locate HALLO_rlocate: Result is empty
Comment by Roman Kyrylych (Romashka) - Thursday, 14 February 2008, 19:58 GMT
That explains why I wasn't able to test it. :-(
Unfortunately, I don't know what I need to change to make it work. *shrugs*

Loading...