summaryrefslogtreecommitdiffstats
path: root/src/nspawn/nspawn.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-09-02 12:09:51 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-09-02 18:32:01 +0200
commitbad31660eda404b034d20ea0d4b22ca45009f183 (patch)
tree63902b397a92a24e9404543e352b176efdfba7b1 /src/nspawn/nspawn.c
parentloop-util: always set LoopDevice.node (diff)
downloadsystemd-bad31660eda404b034d20ea0d4b22ca45009f183.tar.xz
systemd-bad31660eda404b034d20ea0d4b22ca45009f183.zip
dissect-image: introduce dissect_loop_device() which takes LoopDevice object
Diffstat (limited to 'src/nspawn/nspawn.c')
-rw-r--r--src/nspawn/nspawn.c7
1 files changed, 2 insertions, 5 deletions
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) {