However, I found that one of my staple utilities, updatedb / locate (plocate) no longer functioned. After running "sudo updatedb", "locate <filename>" failed to find any files anywhere in the system. Eventually I tracked the problem down to an entry in the /etc/updatedb.conf file. A "yes" entry must be changed to "no."
Change
Code: Select all
PRUNE_BIND_MOUNTS="yes"
Code: Select all
PRUNE_BIND_MOUNTS="no"
man updatedb.conf produced:
Code: Select all
PRUNE_BIND_MOUNTS
One of the strings 0, no, 1 or yes. If PRUNE_BIND_MOUNTS is 1 or yes, bind mounts are not scanned by
updatedb(8). All file systems mounted in the subtree of a bind mount are skipped as well, even if they are
not bind mounts. As an exception, bind mounts of a directory on itself are not skipped. Note that Btrfs
subvolume mounts are handled internally in the kernel as bind mounts (see btrfs-subvolume(8)), and thus,
may get skipped if you have also mounted the filesystem root itself. To counteract this, make your root
directory a Btrfs subvolume, too.
By default, bind mounts are not skipped.
Cal