]> 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 17:17:42 +0000 (18:17 +0100)
Otherwise after the service exits it will still show
"Installing 'foobar'" as the status, which is confusing

(cherry picked from commit 5cfc9c34f4a38cc82c233e453373d48231944d81)
(cherry picked from commit 0e502d986b724f195385ad99f7f214d8586fec7f)

src/sysupdate/sysupdate.c

index 9565b68e0502deb2af5dc616c8cdc7633d219777..43cb019f8666f8383100872b44766bc494dfb78b 100644 (file)
@@ -832,6 +832,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;