import: introduce new mini-daemon systemd-importd, and make machinectl a client to it
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Jan 2015 02:57:15 +0000 (03:57 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 22 Jan 2015 03:02:07 +0000 (04:02 +0100)
commit3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3
treed79e54dec69645a894a4ec12d6abf765515d245f
parentf4c135bf2f0abcf79c89efbeae51f03bacba5f2f
import: introduce new mini-daemon systemd-importd, and make machinectl a client to it

The old "systemd-import" binary is now an internal tool. We still use it
as asynchronous backend for systemd-importd. Since the import tool might
require some IO and CPU resources (due to qcow2 explosion, and
decompression), and because we might want to run it with more minimal
priviliges we still keep it around as the worker binary to execute as
child process of importd.

machinectl now has verbs for pulling down images, cancelling them and
listing them.
27 files changed:
.gitignore
Makefile.am
configure.ac
src/import/.gitignore [new file with mode: 0644]
src/import/import-common.c [moved from src/import/import-util.c with 90% similarity]
src/import/import-common.h [moved from src/import/import-util.h with 75% similarity]
src/import/import-dkr.c
src/import/import-dkr.h
src/import/import-raw.c
src/import/import-tar.c
src/import/import.c
src/import/importd.c [new file with mode: 0644]
src/import/org.freedesktop.import1.conf [new file with mode: 0644]
src/import/org.freedesktop.import1.policy.in [new file with mode: 0644]
src/import/org.freedesktop.import1.service [new file with mode: 0644]
src/journal/journald-syslog.c
src/journal/journald-syslog.h
src/libsystemd/sd-bus/bus-common-errors.c
src/libsystemd/sd-bus/bus-common-errors.h
src/machine/machinectl.c
src/shared/import-util.c [new file with mode: 0644]
src/shared/import-util.h [new file with mode: 0644]
src/shared/util.c
src/shared/util.h
units/.gitignore
units/org.freedesktop.import1.busname [new file with mode: 0644]
units/systemd-importd.service.in [new file with mode: 0644]