Make the updatedb script installed as /usr/libexec/locate.updatedb

inspect all local file systems, not only ufs and ext2fs. A number
of local file systems has been added over time, and at least zfs
has the potential to become a popular choice. Without this change
a ZFS root file system causes the script to ignore all file-systems
and leads to an empty locate db. (An alternative is to add all the
relevant file systems individually, which means that at least zfs,
xfs, ntfs, ntfs-3g, msdosfs should be added, probably more).
This commit is contained in:
se 2007-10-15 22:09:19 +00:00
parent 33db6d7cd5
commit e42b1cae2d

View File

@ -52,7 +52,7 @@ PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; export PATH
: ${FCODES:=/var/db/locate.database} # the database
: ${SEARCHPATHS:="/"} # directories to be put in the database
: ${PRUNEPATHS:="/tmp /usr/tmp /var/tmp /var/db/portsnap"} # unwanted directories
: ${FILESYSTEMS:="ufs ext2fs"} # allowed filesystems
: ${FILESYSTEMS:="local"} # allowed filesystems
: ${find:=find}
case X"$SEARCHPATHS" in