From: Luca Boccassi Date: Wed, 28 May 2025 23:36:47 +0000 (+0100) Subject: sysupdate: change status once operation has completed X-Git-Tag: v258-rc1~450 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cfc9c34f4a38cc82c233e453373d48231944d81;p=thirdparty%2Fsystemd.git sysupdate: change status once operation has completed Otherwise after the service exits it will still show "Installing 'foobar'" as the status, which is confusing --- diff --git a/src/sysupdate/sysupdate.c b/src/sysupdate/sysupdate.c index 7d8b88bb148..692291fcfee 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;