diff options
author | Dominique Leuenberger <dimstar@opensuse.org> | 2014-10-04 14:01:48 +0200 |
---|---|---|
committer | Dominique Leuenberger <dimstar@opensuse.org> | 2014-10-04 14:01:48 +0200 |
commit | 551a85fa632727e6fa3559ff7814fb159d345247 (patch) | |
tree | 12a6053e51bd57bcff5737ef41158b673a9a836e /data | |
parent | 56e87f737695ab4acb0a4c387cc744929692dfea (diff) |
Offline-updates: don't allow to disable
Make packagekit-offline-update a static service.
Users believe by disabling the service, the feature would be disabled,
when in fact systemd still brings the user to the system-update.target
but then doesn't perform any action, most of all not removing the
/system-update link, thus ending in a loop.
Link the new static service into system-update.target.wanted, to ensure
system-update.target triggers offline-update.
https://bugzilla.redhat.com/show_bug.cgi?id=988235
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 4 | ||||
-rw-r--r-- | data/packagekit-offline-update.service.in | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 99019c414..23c8c1b55 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -40,6 +40,10 @@ install-data-hook: echo "Remove global read access for: $(DESTDIR)$(localstatedir)/lib/PackageKit/$$file"; \ chmod o-r $(DESTDIR)$(localstatedir)/lib/PackageKit/$$file; \ done +if HAVE_SYSTEMD + mkdir -p $(DESTDIR)$(systemdservicedir)/system-update.target.wants + ln -s ../packagekit-offline-update.service $(DESTDIR)$(systemdservicedir)/system-update.target.wants/packagekit-offline-update.service +endif EXTRA_DIST = \ org.freedesktop.PackageKit.conf.in \ diff --git a/data/packagekit-offline-update.service.in b/data/packagekit-offline-update.service.in index bff38d3fe..2bbf5e87e 100644 --- a/data/packagekit-offline-update.service.in +++ b/data/packagekit-offline-update.service.in @@ -2,8 +2,5 @@ Description=Updates the operating system whilst offline OnFailure=reboot.target -[Install] -WantedBy=system-update.target - [Service] ExecStart=@libexecdir@/pk-offline-update |