]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect: employ vpick also if we operate on a directory-based image 35829/head
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Nov 2024 11:14:39 +0000 (12:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 3 Jan 2025 09:14:20 +0000 (10:14 +0100)
src/dissect/dissect.c

index 3ca81a6a218588bee593fbe83c2d8c656097b0fd..7709f42c48854850ac09bb4d3a5ae32c0e89ad68 100644 (file)
@@ -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);