Systemd/src/nspawn
Michal Sekletar e01ff70a77 nspawn: always setup machine id
We check /etc/machine-id of the container and if it is already populated
we use value from there, possibly ignoring value of --uuid option from
the command line. When dealing with R/O image we setup transient machine
id.

Once we determined machine id of the container, we use this value for
registration with systemd-machined and we also export it via
container_uuid environment variable.

As registration with systemd-machined is done by the main nspawn process
we communicate container machine id established by setup_machine_id from
outer child to the main process by unix domain socket. Similarly to PID
of inner child.
2016-04-11 16:43:16 +02:00
..
.gitignore nspawn: add new .nspawn files for container settings 2015-09-06 01:49:06 +02:00
Makefile build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
nspawn-cgroup.c core: update populated event handling in unified hierarchy 2016-03-26 12:05:57 -04:00
nspawn-cgroup.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
nspawn-expose-ports.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
nspawn-expose-ports.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
nspawn-gperf.gperf nspawn: optionally run a stub init process as PID 1 2016-02-03 23:58:24 +01:00
nspawn-mount.c prevent systemd-nspawn from trying to create target 2016-04-01 17:31:55 +02:00
nspawn-mount.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
nspawn-network.c tree-wide: make ++/-- usage consistent WRT spacing 2016-02-22 20:32:04 -08:00
nspawn-network.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
nspawn-register.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
nspawn-register.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
nspawn-settings.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
nspawn-settings.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
nspawn-setuid.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
nspawn-setuid.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
nspawn-stub-pid1.c nspawn: optionally run a stub init process as PID 1 2016-02-03 23:58:24 +01:00
nspawn-stub-pid1.h nspawn: optionally run a stub init process as PID 1 2016-02-03 23:58:24 +01:00
nspawn.c nspawn: always setup machine id 2016-04-11 16:43:16 +02:00