]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/sysext/sysext.c
Merge pull request #20257 from bluca/seqno
[thirdparty/systemd.git] / src / sysext / sysext.c
index 49ec23d93430637033a3b915eb2d8b028a8d7bd4..f15d4dd61da32edfe541a8377b4607ea5cbd0471 100644 (file)
@@ -525,13 +525,16 @@ static int merge_subprocess(Hashmap *images, const char *workspace) {
 
                         r = loop_device_make_by_path(img->path, O_RDONLY, 0, &d);
                         if (r < 0)
-                                return log_error_errno(r, "Failed to set up loopback device: %m");
+                                return log_error_errno(r, "Failed to set up loopback device for %s: %m", img->path);
 
                         r = dissect_image_and_warn(
                                         d->fd,
                                         img->path,
                                         &verity_settings,
                                         NULL,
+                                        d->diskseq,
+                                        d->uevent_seqnum_not_before,
+                                        d->timestamp_not_before,
                                         flags,
                                         &m);
                         if (r < 0)
@@ -549,6 +552,7 @@ static int merge_subprocess(Hashmap *images, const char *workspace) {
                                         m,
                                         p,
                                         UID_INVALID,
+                                        UID_INVALID,
                                         flags);
                         if (r < 0)
                                 return r;
@@ -563,7 +567,7 @@ static int merge_subprocess(Hashmap *images, const char *workspace) {
                         break;
                 }
                 default:
-                        assert_not_reached("Unsupported image type");
+                        assert_not_reached();
                 }
 
                 r = validate_version(
@@ -954,7 +958,7 @@ static int parse_argv(int argc, char *argv[]) {
                         return -EINVAL;
 
                 default:
-                        assert_not_reached("Unhandled option");
+                        assert_not_reached();
                 }
 
         return 1;