From 0e502d986b724f195385ad99f7f214d8586fec7f Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Thu, 29 May 2025 00:36:47 +0100 Subject: [PATCH] sysupdate: change status once operation has completed Otherwise after the service exits it will still show "Installing 'foobar'" as the status, which is confusing (cherry picked from commit 5cfc9c34f4a38cc82c233e453373d48231944d81) --- src/sysupdate/sysupdate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sysupdate/sysupdate.c b/src/sysupdate/sysupdate.c index 2bdd71e7427..ecd3544e0de 100644 --- a/src/sysupdate/sysupdate.c +++ b/src/sysupdate/sysupdate.c @@ -1085,6 +1085,9 @@ static int context_apply( log_info("%s Successfully installed update '%s'.", special_glyph(SPECIAL_GLYPH_SPARKLES), us->version); + (void) sd_notifyf(/* unset_environment=*/ false, + "STATUS=Installed '%s'.", us->version); + if (ret_applied) *ret_applied = us; -- 2.47.3