From 5cfc9c34f4a38cc82c233e453373d48231944d81 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 --- src/sysupdate/sysupdate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sysupdate/sysupdate.c b/src/sysupdate/sysupdate.c index 7d8b88bb14..692291fcfe 100644 --- a/src/sysupdate/sysupdate.c +++ b/src/sysupdate/sysupdate.c @@ -1088,6 +1088,9 @@ static int context_apply( log_info("%s Successfully installed update '%s'.", glyph(GLYPH_SPARKLES), us->version); + (void) sd_notifyf(/* unset_environment=*/ false, + "STATUS=Installed '%s'.", us->version); + if (ret_applied) *ret_applied = us;