summaryrefslogtreecommitdiff
path: root/src/portable/portabled-image-bus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-01-12 17:18:53 +0100
committerLennart Poettering <lennart@poettering.net>2021-01-19 13:41:42 +0100
commitd577d4a432dd7bb056d2f7df53956122ebcb1ab0 (patch)
tree12fe73d70c67def5ad1cc4b8afd5b8a699928be1 /src/portable/portabled-image-bus.c
parent7a87fb611986db0b55dbc045230b5edceef05a87 (diff)
downloadsystemd-d577d4a432dd7bb056d2f7df53956122ebcb1ab0.tar.gz
machine-image: properly support searching for images below some --root= path
systemd-sysext supports --root= for everything but the image discovery. Fix that.
Diffstat (limited to 'src/portable/portabled-image-bus.c')
-rw-r--r--src/portable/portabled-image-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/portabled-image-bus.c b/src/portable/portabled-image-bus.c
index eb0786e4bb..76b6ddebde 100644
--- a/src/portable/portabled-image-bus.c
+++ b/src/portable/portabled-image-bus.c
@@ -606,7 +606,7 @@ int bus_image_acquire(
if (image_name_is_valid(name_or_path)) {
/* If it's a short name, let's search for it */
- r = image_find(IMAGE_PORTABLE, name_or_path, &loaded);
+ r = image_find(IMAGE_PORTABLE, name_or_path, NULL, &loaded);
if (r == -ENOENT)
return sd_bus_error_setf(error, BUS_ERROR_NO_SUCH_PORTABLE_IMAGE, "No image '%s' found.", name_or_path);