summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-11-17 04:26:42 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-11-17 04:26:42 +0100
commit5287d0146d0cab7ef0186cf26835be296d0470aa (patch)
tree40cee7dd49b58996897eebdb5f272831a7c1d89c
parent087657bbf0a1335627aaa56c376cd149d8e97b11 (diff)
downloadnixpkgs-5287d0146d0cab7ef0186cf26835be296d0470aa.tar
nixpkgs-5287d0146d0cab7ef0186cf26835be296d0470aa.tar.gz
nixpkgs-5287d0146d0cab7ef0186cf26835be296d0470aa.tar.bz2
nixpkgs-5287d0146d0cab7ef0186cf26835be296d0470aa.tar.lz
nixpkgs-5287d0146d0cab7ef0186cf26835be296d0470aa.tar.xz
nixpkgs-5287d0146d0cab7ef0186cf26835be296d0470aa.tar.zst
nixpkgs-5287d0146d0cab7ef0186cf26835be296d0470aa.zip
nixos/locate: PRUNE_BIND_MOUNTSFR -> PRUNE_BIND_MOUNTS
PRUNE_BIND_MOUNTSFR seems to be a typo.
The man page only mentions it in a header and further in the paragraph
it is PRUNE_BIND_MOUNTS.

Also breaks plocate which complains about the unknown option.
-rw-r--r--nixos/modules/misc/locate.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/misc/locate.nix b/nixos/modules/misc/locate.nix
index 2f2986c2fec..6ee66d5da12 100644
--- a/nixos/modules/misc/locate.nix
+++ b/nixos/modules/misc/locate.nix
@@ -202,7 +202,7 @@ in {
           PRUNEFS="${lib.concatStringsSep " " cfg.pruneFS}"
           PRUNENAMES="${lib.concatStringsSep " " cfg.pruneNames}"
           PRUNEPATHS="${lib.concatStringsSep " " cfg.prunePaths}"
-          PRUNE_BIND_MOUNTSFR="${lib.boolToString cfg.pruneBindMounts}"
+          PRUNE_BIND_MOUNTS="${if cfg.pruneBindMounts then "yes" else "no"}"
         '';
       };
     };