dissect-image: use backing_file stored in LoopDevice object to generate image name

Follow-up for e374439f4b (#24322).

This also simplify the logic of generating image name from image path.
This commit is contained in:
Yu Watanabe
2022-09-07 20:45:24 +09:00
parent e77cab8248
commit 369de26fdf
6 changed files with 45 additions and 53 deletions
-1
View File
@@ -367,7 +367,6 @@ static int portable_extract_by_path(
r = dissect_loop_device(
d,
path,
NULL, NULL,
DISSECT_IMAGE_READ_ONLY |
DISSECT_IMAGE_GENERIC_ROOT |