summary refs log tree commit diff
path: root/pkgs/build-support/build-fhs-userenv-bubblewrap
diff options
context:
space:
mode:
authorZhaofeng Li <hello@zhaofeng.li>2023-03-17 11:00:14 -0600
committerZhaofeng Li <hello@zhaofeng.li>2023-03-17 11:03:12 -0600
commit42ef5ded06774d4b269a7c95e29e12ab64fc553a (patch)
tree6a7e5ff5b2e118ec3f180ed17e6f3dd6d5854888 /pkgs/build-support/build-fhs-userenv-bubblewrap
parent58d73d2397f5ccd251d7e3833ee36b2f117ec06d (diff)
downloadnixpkgs-42ef5ded06774d4b269a7c95e29e12ab64fc553a.tar
nixpkgs-42ef5ded06774d4b269a7c95e29e12ab64fc553a.tar.gz
nixpkgs-42ef5ded06774d4b269a7c95e29e12ab64fc553a.tar.bz2
nixpkgs-42ef5ded06774d4b269a7c95e29e12ab64fc553a.tar.lz
nixpkgs-42ef5ded06774d4b269a7c95e29e12ab64fc553a.tar.xz
nixpkgs-42ef5ded06774d4b269a7c95e29e12ab64fc553a.tar.zst
nixpkgs-42ef5ded06774d4b269a7c95e29e12ab64fc553a.zip
build-fhs-userenv-bubblewrap: Use more descriptive names
Diffstat (limited to 'pkgs/build-support/build-fhs-userenv-bubblewrap')
-rw-r--r--pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix b/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix
index b95d94f4a0b..76e68573faa 100644
--- a/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix
+++ b/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix
@@ -98,7 +98,7 @@ let
   '';
 
   bwrapCmd = { initArgs ? "" }: ''
-    blacklist=(/nix /dev /proc /etc)
+    ignored=(/nix /dev /proc /etc)
     ro_mounts=()
     symlinks=()
     etc_ignored=()
@@ -108,10 +108,10 @@ let
         :
       elif [[ -L $i ]]; then
         symlinks+=(--symlink "$(${coreutils}/bin/readlink "$i")" "$path")
-        blacklist+=("$path")
+        ignored+=("$path")
       else
         ro_mounts+=(--ro-bind "$i" "$path")
-        blacklist+=("$path")
+        ignored+=("$path")
       fi
     done
 
@@ -142,8 +142,8 @@ let
     declare -a auto_mounts
     # loop through all directories in the root
     for dir in /*; do
-      # if it is a directory and it is not in the blacklist
-      if [[ -d "$dir" ]] && [[ ! "''${blacklist[@]}" =~ "$dir" ]]; then
+      # if it is a directory and it is not ignored
+      if [[ -d "$dir" ]] && [[ ! "''${ignored[@]}" =~ "$dir" ]]; then
         # add it to the mount list
         auto_mounts+=(--bind "$dir" "$dir")
       fi