]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: make rootfs relative to oci bundle path
authorArian van Putten <arian.vanputten@gmail.com>
Sun, 20 Dec 2020 22:11:57 +0000 (23:11 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Jan 2021 17:29:19 +0000 (18:29 +0100)
commit089cd8b34b5732e57321c92c16382dc8366faa42
tree2c20649ae7c5e544a74a1c5a30dd04da5757edef
parentdf49792e01c2f6e49f21271e4d0abe0723b854b3
nspawn: make rootfs relative to oci bundle path

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)
src/nspawn/nspawn-oci.c