fhs-userenv-bubblewrap: Add store path to readlink

Commit df4761 added a call to readlink, which fails if it is not in the
user's path when run. Updated the readlink call to pull from the
coreutils store path directly.
This commit is contained in:
Matthew Mazzanti 2021-03-11 08:27:14 -05:00
parent 867edccac8
commit eb268eabad

View file

@ -95,7 +95,7 @@ let
if [[ $path == '/etc' ]]; then
:
elif [[ -L $i ]]; then
symlinks+=(--symlink "$(readlink "$i")" "$path")
symlinks+=(--symlink "$(${coreutils}/bin/readlink "$i")" "$path")
blacklist+=("$path")
else
ro_mounts+=(--ro-bind "$i" "$path")