]> git.ipfire.org Git - thirdparty/systemd.git/commit
sysupdate: Emit READY=1 status when installing
authorPhilip Withnall <pwithnall@gnome.org>
Mon, 20 Apr 2026 17:02:42 +0000 (18:02 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 20 Apr 2026 21:22:43 +0000 (22:22 +0100)
commitdb3bfa0c4cd7f5246ca73d399c8f9e2e337bd313
tree2dcf26aad317d3fb0b6a1351a60179f9af43e3a7
parentcbbaa1a3354bf5b6afe9277a246e45eaeef3a62d
sysupdate: Emit READY=1 status when installing

`READY=1` is already correctly emitted when acquiring an update, but was
forgotten to be emitted when subsequently installing that update.

That meant that the state tracking code in `sysupdated` and hence
`updatectl` could not properly report the progress of the install
operation, and hence printed “Already up-to-date” after a successful
update installation, rather than “Done”.

Add a test to catch this in future.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Fixes: https://github.com/systemd/systemd/issues/41502
src/sysupdate/sysupdate.c
test/units/TEST-72-SYSUPDATE.sh