I have several binaries matching /usr/bin/myth*. When
mlocate-updatedb
runs via a timer, the / file system is skipped so no files under
/usr/bin are listed when I run "locate bin/myth".
I'm experiencing the same issue.
I took a look at the service unit file (/usr/lib/systemd/system/mlocate-updatedb.service).
It has some sandboxing features set. When I set the value of "ProtectSystem" to
either "false" or "strict", a manual run of the service does include
the files under /usr in the database. Other options result in the behavior mentioned.
I can't see what sense this makes. That setting is supposed to just cover what gets
mounted read-only. A systemd bug?