summaryrefslogtreecommitdiff
path: root/src/shared/discover-image.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-09-06 05:37:13 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-09-07 20:45:24 +0900
commit369de26fdf7152e7f2ff790b65533d101772e073 (patch)
treea97cd3b4f54e90c280002a4a9ff16705eea31cb4 /src/shared/discover-image.c
parente77cab824829f33e7870eb188ccd014acac49075 (diff)
downloadsystemd-369de26fdf7152e7f2ff790b65533d101772e073.tar.gz
dissect-image: use backing_file stored in LoopDevice object to generate image name
Follow-up for e374439f4b8def786031ddbbd7dfdae3a335d4d2 (#24322). This also simplify the logic of generating image name from image path.
Diffstat (limited to 'src/shared/discover-image.c')
-rw-r--r--src/shared/discover-image.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/shared/discover-image.c b/src/shared/discover-image.c
index 6ddb279f0d..b3b59fc0bb 100644
--- a/src/shared/discover-image.c
+++ b/src/shared/discover-image.c
@@ -1198,7 +1198,6 @@ int image_read_metadata(Image *i) {
r = dissect_loop_device(
d,
- i->path,
NULL, NULL,
DISSECT_IMAGE_GENERIC_ROOT |
DISSECT_IMAGE_REQUIRE_ROOT |