From: Kai Lüke Date: Thu, 16 Apr 2026 06:24:27 +0000 (+0900) Subject: sysupdated: don't crash when an mstack machine image is found X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4efb5d389c9653e3a61e583c64dc3d094eb8911e;p=thirdparty%2Fsystemd.git 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 --- diff --git a/src/sysupdate/sysupdated.c b/src/sysupdate/sysupdated.c index f387494b580..4c7a759a4da 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;