From 34fae590bf80c2502a36e2573d57eb0827563090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Tue, 26 Jan 2021 00:42:32 +0000 Subject: [PATCH] build-fhs-userenv-bubblewrap: don't bind /etc/fonts from fhs environment --- pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix b/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix index a5637acbf276..6592621570ce 100644 --- a/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix +++ b/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix @@ -80,6 +80,11 @@ let if [[ -d ${env}/etc ]]; then for i in ${env}/etc/*; do path="/''${i##*/}" + # NOTE: we're binding /etc/fonts from the host so we don't want to + # override it with a path from the FHS environment. + if [[ $path == '/fonts' ]]; then + continue + fi ro_mounts+=(--ro-bind "$i" "/etc$path") done fi