From 4efb5d389c9653e3a61e583c64dc3d094eb8911e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20L=C3=BCke?= Date: Thu, 16 Apr 2026 15:24:27 +0900 Subject: [PATCH] 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 --- src/sysupdate/sysupdated.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sysupdate/sysupdated.c b/src/sysupdate/sysupdated.c index f387494b58..4c7a759a4d 100644 --- a/src/sysupdate/sysupdated.c +++ b/src/sysupdate/sysupdated.c @@ -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;