From: Lennart Poettering Date: Thu, 14 Nov 2024 11:14:39 +0000 (+0100) Subject: dissect: employ vpick also if we operate on a directory-based image X-Git-Tag: v258-rc1~1733^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd2fd8550166c87c9866ed0644c106efc5820a8d;p=thirdparty%2Fsystemd.git dissect: employ vpick also if we operate on a directory-based image --- diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index 3ca81a6a218..7709f42c488 100644 --- a/src/dissect/dissect.c +++ b/src/dissect/dissect.c @@ -2066,6 +2066,16 @@ static int run(int argc, char *argv[]) { return r; } + if (arg_root) { + r = path_pick_update_warn( + &arg_root, + &pick_filter_image_dir, + PICK_ARCHITECTURE|PICK_TRIES, + /* ret_result= */ NULL); + if (r < 0) + return r; + } + switch (arg_action) { case ACTION_UMOUNT: return action_umount(arg_path);