mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
locate: Clarify mlocate warning message
Make it clear that the warning is that updatedb will run as root, not that locate will only run as root. Also explain how to silence the warning. Fixes #30864. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
a21c2fa3ea
commit
db28ce3535
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ in {
|
|||
{ LOCATE_PATH = cfg.output;
|
||||
};
|
||||
|
||||
warnings = optional (isMLocate && cfg.localuser != null) "mlocate does not support searching as user other than root"
|
||||
warnings = optional (isMLocate && cfg.localuser != null) "mlocate does not support the services.locate.localuser option; updatedb will run as root. (Silence with services.locate.localuser = null.)"
|
||||
++ optional (isFindutils && cfg.pruneNames != []) "findutils locate does not support pruning by directory component"
|
||||
++ optional (isFindutils && cfg.pruneBindMounts) "findutils locate does not support skipping bind mounts";
|
||||
|
||||
|
|
Loading…
Reference in a new issue