diff options
author | Zhaofeng Li <hello@zhaofeng.li> | 2023-03-17 11:00:14 -0600 |
---|---|---|
committer | Zhaofeng Li <hello@zhaofeng.li> | 2023-03-17 11:03:12 -0600 |
commit | 42ef5ded06774d4b269a7c95e29e12ab64fc553a (patch) | |
tree | 6a7e5ff5b2e118ec3f180ed17e6f3dd6d5854888 /pkgs/build-support/build-fhs-userenv-bubblewrap | |
parent | 58d73d2397f5ccd251d7e3833ee36b2f117ec06d (diff) |
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.nix | 10 |
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 b95d94f4a0bf1..76e68573faa82 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 |