chiark / gitweb /
nspawn: allow spawning ephemeral nspawn containers based on the root file system...
authorLennart Poettering <lennart@poettering.net>
Fri, 12 Dec 2014 15:59:15 +0000 (16:59 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 12 Dec 2014 16:30:25 +0000 (17:30 +0100)
commitc4e34a612c81266773cf8358cb38a43d2e43474e
tree30365df7de959342130bd88d1ce6d6be7c32d73d
parentdf9a75e480ecbfe230589a7c1e8e0bb790ee0595
nspawn: allow spawning ephemeral nspawn containers based on the root file system of the OS

This works now:

        # systemd-nspawn -xb -D / -M foobar

Which boots up an ephemeral container, based on the host's root file
system. Or in other words: you can now run the very same host OS you
booted your system with also in a container, on top of it, without
having it interfere. Great for testing whether the init system you are
hacking on still boots without reboot the system!
src/nspawn/nspawn.c
src/shared/util.c
src/shared/util.h