]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysupdate: change status once operation has completed
authorLuca Boccassi <luca.boccassi@gmail.com>
Wed, 28 May 2025 23:36:47 +0000 (00:36 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 29 May 2025 13:44:31 +0000 (15:44 +0200)
Otherwise after the service exits it will still show
"Installing 'foobar'" as the status, which is confusing

src/sysupdate/sysupdate.c

index 7d8b88bb148f1245c8ffcb843790a69fe5683a05..692291fcfee622d36388cc24359f46eef49a5444 100644 (file)
@@ -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;