Commit Graph

10 Commits

Author SHA1 Message Date
Mario Limonciello
506ef63a59 trivial: snap: correct install hook root directory 2019-09-26 13:34:26 -05:00
Mario Limonciello
0a9665c708 trivial: Move dbus directory location for snap too
This error was happening on fresh snap install (not upgrade):
```
install: cannot stat '/snap/fwupd/1065/etc/dbus-1/system.d/org.freedesktop.fwupd.conf': No such file or directory
```

Fixes 41a25be6 ("Move D-Bus conf file to datadir/dbus-1/system.d")
2019-09-23 09:08:49 -05:00
Mario Limonciello
c8bfb40527 trivial: snap: make polkit directories if they don't exist (Fixes: #1205) 2019-05-23 14:29:04 -05:00
Mario Limonciello
4eb251c4e5 trivial: snap: start/stop fwupd-activate on install/remove 2019-04-02 09:14:37 -05:00
Mario Limonciello
a29ca19793 snap: Add a custom systemd unit to call activation on shutdown (Fixes: #1125)
The systemd shutdown script gets called after /snap/fwupd/* gets
unmounted meaning it can't be used to do the activation.

Explicitly check that the symlink for /snap/fwupd/current is mounted
when calling the script.
2019-04-02 07:10:56 -05:00
Mario Limonciello
6884795033 trivial: snap: fix install location for shutdown script (Fixes: #1064) 2019-03-03 19:48:27 -06:00
Mario Limonciello
96a0dd5606 Add a support for delayed activation
This is intended for devices that it is not safe to immediately activate
the firmware.  It may be called at a more convenient time instead.

Both fwupdmgr and fwupdtool support the feature.

- if called at runtime with fwupdmgr it uses the daemon
- during shutdown fwupdtool uses the pending.db to perform this feature.
2019-02-27 09:04:54 +00:00
Mario Limonciello
c60012c784 trivial: snap: Install dbus service in classic snap
This should be reverted if switching to a devmode or confined snap.
2018-09-10 13:21:12 -05:00
Mario Limonciello
b91d3d9bff trivial: snap: set up proper permissions for copied filed in hook 2018-09-09 12:46:40 -05:00
Mario Limonciello
25b49b7943 snap: Add an install hook for classic snap
Install the policykit rules and actions into the host system.
If switched to a devmode snap this should be reverted.
2018-09-08 08:34:36 -05:00