]> 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)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 25 Jun 2025 12:36:10 +0000 (13:36 +0100)
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

index 2bdd71e74272e64ae8c17b25b09317d064769762..ecd3544e0deb12855e7c05680c58012baf8429df 100644 (file)
@@ -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;