Expand description
Paths read inside a sysroot as if it were the root filesystem.
A rootfs is full of absolute symlinks, lib64 -> /usr/lib and the
like, and they name the sysroot’s own files. The packer’s kernel
follows them to the packer’s files instead, so every path read out of
a sysroot is resolved here first: an absolute target starts again at
the sysroot root, and .. stops there.
Functions§
- entry_
in_ root - As
in_root, with the last component left as it is: a symlink there is the link itself rather than what it names. - in_root
relinsiderootwith every symlink followed in sysroot terms, returned asrootjoined with a path that holds no symlink. A component that does not exist ends the resolution, and the rest is appended as written, so the result exists exactly whenreldoes in the sysroot.