summaryrefslogtreecommitdiff
path: root/src/import/export.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-04-05 15:39:43 +0200
committerLennart Poettering <lennart@poettering.net>2018-05-24 17:01:57 +0200
commit5ef46e5f6598d74acbfe963d4feb8dca4e9486b4 (patch)
tree683837dcfba3b8109cb01b9d3c120e1060ba1389 /src/import/export.c
parent3e36211be0b60e239792e6a4efb4a1e75365a3a8 (diff)
downloadsystemd-5ef46e5f6598d74acbfe963d4feb8dca4e9486b4.tar.gz
machine-image: introduce two different classes of images
This distuingishes two different classes of images, one for the purpose of npsawn-like containers, i.e. "machines", and one for portable services. This distinction is mostly about search paths. We look for machine images in /var/lib/machines and for portable images in /var/lib/portables.
Diffstat (limited to 'src/import/export.c')
-rw-r--r--src/import/export.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/import/export.c b/src/import/export.c
index 5464b85840..b8bae74d1a 100644
--- a/src/import/export.c
+++ b/src/import/export.c
@@ -69,7 +69,7 @@ static int export_tar(int argc, char *argv[], void *userdata) {
int r, fd;
if (machine_name_is_valid(argv[1])) {
- r = image_find(argv[1], &image);
+ r = image_find(IMAGE_MACHINE, argv[1], &image);
if (r < 0)
return log_error_errno(r, "Failed to look for machine %s: %m", argv[1]);
if (r == 0) {
@@ -148,7 +148,7 @@ static int export_raw(int argc, char *argv[], void *userdata) {
int r, fd;
if (machine_name_is_valid(argv[1])) {
- r = image_find(argv[1], &image);
+ r = image_find(IMAGE_MACHINE, argv[1], &image);
if (r < 0)
return log_error_errno(r, "Failed to look for machine %s: %m", argv[1]);
if (r == 0) {