From ad73719fa40c2b1410567508b35ab59332de3b94 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 8 Mar 2019 09:58:55 +0000 Subject: [PATCH] Do not reboot when failing to start fwupd during offline updates If another offline update task is run at the same time, e.g. pk-offline-update from PackageKit then we might corrupt the package database when the client D-Bus request times out. Copy the fixes from PackageKit so that the offline updates work together. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1685471 --- data/fwupd-offline-update.service.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/data/fwupd-offline-update.service.in b/data/fwupd-offline-update.service.in index baabc3035..cdc5489a4 100644 --- a/data/fwupd-offline-update.service.in +++ b/data/fwupd-offline-update.service.in @@ -1,11 +1,13 @@ [Unit] Description=Updates device firmware whilst offline Documentation=man:fwupdmgr -OnFailure=reboot.target ConditionPathExists=/var/lib/fwupd/pending.db DefaultDependencies=false -Requires=sysinit.target -After=sysinit.target system-update-pre.target +Requires=sysinit.target dbus.socket +After=sysinit.target system-update-pre.target dbus.socket systemd-journald.socket +Before=shutdown.target system-update.target [Service] +Type=oneshot ExecStart=@bindir@/fwupdmgr install-prepared +FailureAction=reboot