mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-16 12:23:25 +00:00

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.
10 lines
338 B
Makefile
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
|
|
|