How about adding the following file to findutils?o saphir root # cat /etc/cron.daily/slocate.cron #!/bin/sh renice +19 -p $$ >/dev/null 2>&1 /usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts,devfs,tmpfs" -e "/tmp,/var/tmp,/usr/tmp,/afs,/net"
#!/bin/sh renice +19 -p $$ >/dev/null 2>&1 /usr/bin/updatedb --prunefs='nfs smbfs ncpfs proc devpts devfs tmpfs' --prunepat hs='/tmp /var/tmp /usr/tmp /afs /net /root/.ccache' This one actually works.
Who is doing the crons ? Think its Thilo Bangert <bangert@gentoo.org>, not sure.
Add iso9660 to prunefs :)
The script probably should not index /home and /root by default. It's a bad idea to let all users be able to see the contents of everyone (including root)'s home directories. It's probably a good idea to ignore /mnt as well, since those are temporarily mounted filesystems. Also, consider ignoring /var/spool, or at least mail spools - /var/qmail/queue, /var/spool/postfix, /var/spool/mail, etc.
ska: wanna fix this before we add it?
This bug is aging... Anyway, note that it should be applied to slocate, not findutils, since findutils will no longer be supplying updatedb. See bug 18729
perhaps we can merge the existing cronscript into the suggestions above... actually i am in favor of creating an updatedb.conf so that we get rid of the annoying "missing /etc/updatedb.conf" message in the case a user run updatedb manually... yatze home # updatedb warning: updatedb: could not access /etc/updatedb.conf: open: No such file or directory this is what the existing slocate.cron looks like: yatze cron.daily # cat slocate.cron #! /bin/sh if [ -x /usr/bin/updatedb ] then if [ -f /etc/updatedb.conf ] then /usr/bin/updatedb else /usr/bin/updatedb -f proc fi fi i may be putting some more effort into this later this week... any other paths people wouldn't want in the slocate db? also note: slocate only shows files which are readable by the user - so indexing /home and /root is OK... best regards Thilo
Please add ncpfs to prunefs. :-)
all fixed with latest findutils and slocate