[systemd-devel] Question about system-update.target
Richard Hughes
hughsient at gmail.com
Mon Apr 27 01:52:06 PDT 2015
At the moment the only user of system-update.target is PackageKit,
which does package updates offline in the special system-update boot
target. The other project that has just started using this mode is
fwupd, which is using it to update BIOS-based firmware (not UEFI
capsules) offline.
I've installed a symlink to system-update.target.wants so that the
fwupd process gets run, but I'm a little worried about what happens
when there are two optional services being run, both with
OnFailure=reboot.target
What return code I supposed to return if we launch
fwupd-offline-update.service and there are no BIOS updates to apply?
It seems to me that we want the behaviour of "OnFailure" to be "if
none of the *-offline-update.service files returned success" rather
than what happens now in that we launch pk-offline-update with no
package updates which returns failure, which reboots the machine
before the fwupd offline update process even gets a chance to properly
start.
Ideas welcome, thanks.
Richard
More information about the systemd-devel
mailing list