]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysupdated: don't crash when an mstack machine image is found
authorKai Lüke <kai@amutable.com>
Thu, 16 Apr 2026 06:24:27 +0000 (15:24 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 16 Apr 2026 08:20:49 +0000 (10:20 +0200)
As soon as machinectl list-images has an mstack entry updatectl fails
because systemd-sysupdated crashes with an assertion failing because
the mstack case was not handled.
For now mstack is not supported as image for sysupdate to operate on
and we can skip it.

Fixes https://github.com/systemd/systemd/issues/41649

src/sysupdate/sysupdated.c

index f387494b58051c303cba330419622ecd5ce385fe..4c7a759a4dadb00bd3eb2e3f0aa7afd8fb77cb4f 100644 (file)
@@ -1882,6 +1882,9 @@ static int manager_enumerate_image_class(Manager *m, TargetClass class) {
                 if (image_is_host(image))
                         continue; /* We already enroll the host ourselves */
 
+                if (image->type == IMAGE_MSTACK)
+                        continue; /* systemd-sysupdate doesn't support mstack images yet */
+
                 r = target_new(m, class, image->name, image->path, &t);
                 if (r < 0)
                         return r;