-
execute: don't exec init, call it · 96294efbTycho Andersen authored
Instead of having a statically linked init that we put on the host fs somewhere via packaging, have to either bind mount in or detect fexecve() functionality, let's just call it as a library function. This way we don't have to do any of that. This also fixes up a bunch of conditions from: if (quiet) fprintf(stderr, "log message"); to if (!quiet) fprintf(stderr, "log message"); :) and it drops all the code for fexecve() detection and bind mounting our init in, since we no longer need any of that. A couple other thoughts: * I left the lxc-init binary in since we ship it, so someone could be using it outside of the internal uses. * There are lots of unused arguments to lxc-init (including presumably --quiet, since nobody noticed the above); those may be part of the API though and so we don't want to drop them. Signed-off-by:Tycho Andersen <tycho@tycho.pizza>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| include | Loading commit data... | |
| lxc | Loading commit data... | |
| tests | Loading commit data... | |
| Makefile.am | Loading commit data... |