From bad31660eda404b034d20ea0d4b22ca45009f183 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 2 Sep 2022 19:09:51 +0900 Subject: dissect-image: introduce dissect_loop_device() which takes LoopDevice object --- src/nspawn/nspawn.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/nspawn/nspawn.c') diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 45e138d48a..ca87bffd0b 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -5753,14 +5753,11 @@ static int run(int argc, char *argv[]) { goto finish; } - r = dissect_image_and_warn( - loop->fd, + r = dissect_loop_device_and_warn( arg_image, + loop, &arg_verity_settings, NULL, - loop->diskseq, - loop->uevent_seqnum_not_before, - loop->timestamp_not_before, dissect_image_flags, &dissected_image); if (r == -ENOPKG) { -- cgit v1.2.3