nspawn: make rootfs relative to oci bundle path

System Internals / systemd - Arian van Putten [gmail.com] - 12 January 2021 17:29 UTC

This is inline with the OCI runtime spec:

On POSIX platforms, path is either an absolute path or a relative path to the bundle. For example, with a bundle at /to/bundle and a root filesystem at /to/bundle/rootfs, the path value can be either /to/bundle/rootfs or rootfs. The value SHOULD be the conventional rootfs. (https://github.com/opencontainers/runtime-spec/blob/master/config.md)

089cd8b34b nspawn: make rootfs relative to oci bundle path
src/nspawn/nspawn-oci.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)

Upstream: github.com


  • Share