diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-12-06 18:19:23 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-12-14 18:29:30 +0100 |
commit | 75bf701f5c5ff4ce0679d7bcc7000aa497e1f6ad (patch) | |
tree | dd3081b57363462b6460470d62758d1b4fe353a8 /src/nspawn/nspawn-stub-pid1.h | |
parent | 8d6e80343a1463afbaed1beca4b18c49ce056034 (diff) |
nspawn: flush out environment block of the -a stub init process
The container detection code in virt.c we ship checks for /proc/1/environ,
looking for "container=" in it. Let's make sure our "-a" init stub exposes that
correctly.
Without this "systemd-detect-virt" run in a "-a" container won't detect that it
is being run in a container.
Diffstat (limited to 'src/nspawn/nspawn-stub-pid1.h')
-rw-r--r-- | src/nspawn/nspawn-stub-pid1.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nspawn/nspawn-stub-pid1.h b/src/nspawn/nspawn-stub-pid1.h index 36c1aaf5dd..7ca83078c0 100644 --- a/src/nspawn/nspawn-stub-pid1.h +++ b/src/nspawn/nspawn-stub-pid1.h @@ -19,4 +19,6 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -int stub_pid1(void); +#include "sd-id128.h" + +int stub_pid1(sd_id128_t uuid); |