From bd2fd8550166c87c9866ed0644c106efc5820a8d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 14 Nov 2024 12:14:39 +0100 Subject: [PATCH] dissect: employ vpick also if we operate on a directory-based image --- src/dissect/dissect.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); -- 2.47.3