[systemd-devel] Question about system-update.target

AbH Belxjander Draconis Serechai belxjander at gmail.com
Mon Apr 27 02:49:43 PDT 2015


This seems to putthe requirement of an If(a||b||c)==Failure Then
reboot.target

Where a b and c are ALL required to complete before rebooting occurs.

I would thing to specifically handle each tool as a process,

Would a specific script or tool already be available?

Is it possible to one-shot async run given services using systemctl then
afterwards pull status and log the individual failure before restarting as
a desired behavior here?

Personally I would make a custom service as the update target and
specifically have it failover to reboot once ALL depends have been run as
one-shot fire-until-finished-with-exit strategy.

Hopefully I am understanding the issue with a possible execution strategy
for this specific case?

Is it even practical with current tools in some way?
On 27/04/2015 5:52 PM, "Richard Hughes" <hughsient at gmail.com> wrote:

> 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
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150427/95dc2e29/attachment.html>


More information about the systemd-devel mailing list