Remove src/machine
remove unused includes This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use.
machined: make "machinectl copy-to" and "machinectl copy-from" server side operations This way, any bus client can make use of these calls.
Revert "machined: don't force terminate registered machines" This reverts commit 206e7a5f7b55ac61188efd895e65ab26e478cbb2. We actually want to allow shutting down containers that use RegisterMachine() rather than CreateMachine() to register their own unit. It should be safe to do so, since the primary usecase for RegisterMachine() are container managers that run only a single container within their own unit, such as systemd-nspawn.
machined: Move image discovery logic into src/shared, so that we can make use of it from nspawn
machined: add new call OpenMachineLogin() that starts a getty in a container on a pty and returns the pty master fd to the client This is a one-stop solution for "machinectl login", and should simplify getting logins in containers.
machined: add OpenMachinePTY() bus call for allocating a PTY device within a container Then, port "machinectl" over to make use of it.
machined: allow registering host-side network interfaces for communication with containers
machinectl: show /etc/os-release information of container in status output
machined: don't force terminate registered machines When a machine is registered in machined with CreateMachine it is OK to kill the machine when it is terminated, but when an existing unit is simply registered via RegisterMachine we shouldn't do that, as the unit is controlled by somebody else.
machined: add logic to query IP addresses of containers
machined: optionally, allow registration of pre-existing units (scopes or services) as machine with machined
bus: also add error parameter to object find and enumerator callbacks Just in order to bring things inline with the method and property callbacks.
machined: simplifications
machined: port over to libsystemd-bus
machined: forward scope properties array from client to systemd This makes nspawn's --scope= switch work again.
machined: split out machine registration stuff from logind Embedded folks don't need the machine registration stuff, hence it's nice to make this optional. Also, I'd expect that machinectl will grow additional commands quickly, for example to join existing containers and suchlike, hence it's better keeping that separate from loginctl.