dissect-image: introduce dissect_loop_device() which takes LoopDevice object
This commit is contained in:
@@ -945,14 +945,11 @@ static int run(int argc, char *argv[]) {
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to set up loopback device for %s: %m", arg_image);
|
||||
|
||||
r = dissect_image_and_warn(
|
||||
d->fd,
|
||||
r = dissect_loop_device_and_warn(
|
||||
arg_image,
|
||||
d,
|
||||
&arg_verity_settings,
|
||||
NULL,
|
||||
d->diskseq,
|
||||
d->uevent_seqnum_not_before,
|
||||
d->timestamp_not_before,
|
||||
arg_flags,
|
||||
&m);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user