Package: findutils
Version: 4.1.20-6
Severity: minor
Tags: patch


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.13.4
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages findutils depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

-- no debconf information

I just noticed that instead of maintaining all these PRUNEFS entries,
we can just get the right list for exactly THIS kernel we run on
via /proc/filesystems taking nodev into account.

At least this can be always excluded by default.

We can also include some less interesting directories here.


Patch follows inline

--- /etc/updatedb.conf.old      2005-10-30 12:38:10.000000000 +0100
+++ /etc/updatedb.conf  2005-10-30 12:37:48.000000000 +0100
@@ -1,10 +1,12 @@
 # This file sets environment variables which are used by updatedb
  
 # filesystems which are pruned from updatedb database
-PRUNEFS="NFS nfs afs smbfs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs 
sysfs cifs lustre_lite"
+#PRUNEFS="NFS nfs afs smbfs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs 
sysfs cifs lustre_lite"
+# This is the maintenaince free variant of the above
+PRUNEFS="`cat /proc/filesystems |grep nodev|cut -f2`"
 export PRUNEFS
 # paths which are pruned from updatedb database
-PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /alex /var/spool /sfs /media"
+PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /alex /var/spool /var/run 
/var/lock /sfs /media"
 export PRUNEPATHS
 # netpaths which are added
 NETPATHS=""


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to