mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 11:09:28 +00:00
trivial: debian: set up fwupd-refresh.service/fwupd-refresh.timer
Create a dedicated user account for these to use, and set the preset to leave it as enabled by default. Fixes: https://github.com/fwupd/fwupd/issues/3037
This commit is contained in:
parent
5d22db02ec
commit
f818404d81
@ -48,3 +48,10 @@ for dir in /var/cache/fwupdate /var/lib/fwupdate; do
|
|||||||
rmdir --ignore-fail-on-non-empty $dir || true
|
rmdir --ignore-fail-on-non-empty $dir || true
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
#create a user for fwupd-refresh.service/fwupd-refresh.timer
|
||||||
|
adduser --quiet --system --group --no-create-home --home /run/systemd \
|
||||||
|
--gecos "fwupd-refresh user" fwupd-refresh
|
||||||
|
if [ -d /run/systemd/system ]; then
|
||||||
|
systemctl reload dbus || true
|
||||||
|
fi
|
||||||
|
@ -49,7 +49,7 @@ ifeq (yes,$(shell dpkg-vendor --derives-from Ubuntu && echo yes))
|
|||||||
CONFARGS += -Dplugin_logitech_bulkcontroller=disabled
|
CONFARGS += -Dplugin_logitech_bulkcontroller=disabled
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CONFARGS += -Dplugin_dummy=true -Dplugin_powerd=disabled -Ddocs=gtkdoc -Dsupported_build=enabled -Dplugin_modem_manager=enabled
|
CONFARGS += -Dplugin_dummy=true -Dplugin_powerd=disabled -Ddocs=gtkdoc -Dsupported_build=enabled -Dplugin_modem_manager=enabled -Dsystemd_unit_user=fwupd-refresh
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --with gir
|
dh $@ --with gir
|
||||||
@ -76,6 +76,9 @@ override_dh_install:
|
|||||||
rm -f debian/fwupd/usr/lib/*/fwupd-plugins-*/libfu_plugin_invalid.so
|
rm -f debian/fwupd/usr/lib/*/fwupd-plugins-*/libfu_plugin_invalid.so
|
||||||
rm -f debian/fwupd/etc/fwupd/remotes.d/fwupd-tests.conf
|
rm -f debian/fwupd/etc/fwupd/remotes.d/fwupd-tests.conf
|
||||||
|
|
||||||
|
#enable fwupd-refresh.service by default (we have a dedicated user)
|
||||||
|
rm -f debian/fwupd/lib/systemd/system-preset/fwupd-refresh.preset
|
||||||
|
|
||||||
override_dh_strip_nondeterminism:
|
override_dh_strip_nondeterminism:
|
||||||
dh_strip_nondeterminism -Xfirmware-example.xml.gz
|
dh_strip_nondeterminism -Xfirmware-example.xml.gz
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user