chiark / gitweb /
nspawn: add new --volatile switch for booting containers in volatile (ephemeral)...
authorLennart Poettering <lennart@poettering.net>
Fri, 4 Jul 2014 01:22:33 +0000 (03:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 4 Jul 2014 01:24:42 +0000 (03:24 +0200)
commit4d9f07b492ba1707d4a92cd937b87b8baf827f7d
tree1c6d63226739eb441fc325953b81cd30d441dcd1
parentbaa1bdf70f21848fbe01d3f383ae0f59d86a9bf3
nspawn: add new --volatile switch for booting containers in volatile (ephemeral) mode

Two modes are supported: --volatile=yes mounts only /usr into the
container, and a tmpfs as root directory. --volatile=state mounts the
full OS tree in, but overmounts /var with a tmpfs.

--volatile=yes hence boots with an unpopulated /etc and /var, starting
with pristine configuration and state.

--volatile=state hence boots with an unpopulated /var, only starting
with pristine state.
src/nspawn/nspawn.c