fwupd/contrib/snap/activate-shutdown/Makefile
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

10 lines
338 B
Makefile

build:
true
install:
install -d ${DESTDIR}/etc/systemd/system/
install -m0644 fwupd-activate.service ${DESTDIR}/etc/systemd/system
# fixes up shutdown activation script for classic snap
sed -i "s,/libexec/fwupd/,/snap/bin/fwupd.," \
${SNAPCRAFT_STAGE}/lib/systemd/system-shutdown/fwupd.shutdown