build-fhs-userenv-bubblewrap: don't bind /etc/fonts from fhs environment

This commit is contained in:
André Silva
2021-01-26 00:42:32 +00:00
parent fe49d856b0
commit 34fae590bf

View File

@@ -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