Skip to content
Snippets Groups Projects
Commit bf8396b5 authored by Simon McVittie's avatar Simon McVittie
Browse files

runtime: Use pv_runtime_take_from_host() for ld.so


In a mutable sysroot, overwrite ld.so with a symlink into /run/host.
We overwrite both the interoperable path (to avoid long chains of
symlinks in the common case) and the canonicalized path (to make sure
nothing can end up finding the container's ld.so, which is incompatible
with the libc we have dropped in).

If building a long bwrap command-line, we have to mount over the
canonicalized path, and just live with the fact that there will be
a long chain of symlinks leading to it.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent d4a28d2b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment