Skip to main content

Module path

Module path 

Source
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
rel inside root with every symlink followed in sysroot terms, returned as root joined 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 when rel does in the sysroot.