summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-12 16:59:15 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-12 17:30:25 +0100
commitc4e34a612c81266773cf8358cb38a43d2e43474e (patch)
tree30365df7de959342130bd88d1ce6d6be7c32d73d /src/shared/util.h
parentdf9a75e480ecbfe230589a7c1e8e0bb790ee0595 (diff)
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!
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 9a878ca1ac..a8ccf20bb8 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -1018,6 +1018,7 @@ int fflush_and_check(FILE *f);
int tempfn_xxxxxx(const char *p, char **ret);
int tempfn_random(const char *p, char **ret);
+int tempfn_random_child(const char *p, char **ret);
bool is_localhost(const char *hostname);