]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: optionally, automatically allocated --bind=/--overlay source from /var/tmp
authorLennart Poettering <lennart@poettering.net>
Wed, 30 Nov 2016 17:57:42 +0000 (18:57 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Dec 2016 11:41:18 +0000 (12:41 +0100)
commitc7a4890ce42b6c074ba622c4b82bfd3f738df736
tree02ef1b441379969c4b0a96ddfd38be3d26f43e32
parent86c0dd4a71c29d300632d39cf56ddb0fd0facb24
nspawn: optionally, automatically allocated --bind=/--overlay source from /var/tmp

This extends the --bind= and --overlay= syntax so that an empty string as source/upper
directory is taken as request to automatically allocate a temporary directory
below /var/tmp, whose lifetime is bound to the nspawn runtime. In combination
with the "+" path extension this permits a switch "--overlay=+/var::/var" in
order to use the container's shipped /var, combine it with a writable temporary
directory and mount it to the runtime /var of the container.
man/systemd-nspawn.xml
src/nspawn/nspawn-mount.c
src/nspawn/nspawn-mount.h