sysupdated: don't crash when an mstack machine image is found

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
This commit is contained in:
Kai Lüke
2026-04-16 10:20:49 +02:00
committed by Daan De Meyer
parent 48326af23a
commit 4efb5d389c
+3
View 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;