mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 10:22:17 +00:00
Add a systemd preset file for fwupd-refresh.service
Makes `fwupd-refresh.service` strictly opt-in. Some distros are defaulting to all systemd services on and causing more refreshes than desirable by default, especially when using both `gnome-software` and `fwupd-refresh.service`
This commit is contained in:
parent
66dd3a02cb
commit
0b9bfec150
@ -14,6 +14,7 @@ usr/lib/*/fwupdoffline
|
|||||||
usr/lib/*/fwupdtool
|
usr/lib/*/fwupdtool
|
||||||
usr/share/man/man1/*
|
usr/share/man/man1/*
|
||||||
lib/systemd/system/*
|
lib/systemd/system/*
|
||||||
|
lib/systemd/system-preset/*
|
||||||
lib/systemd/system-shutdown/*
|
lib/systemd/system-shutdown/*
|
||||||
var/lib/fwupd
|
var/lib/fwupd
|
||||||
lib/udev/rules.d/*
|
lib/udev/rules.d/*
|
||||||
|
@ -287,6 +287,7 @@ rm ${RPM_BUILD_ROOT}%{_sbindir}/flashrom
|
|||||||
%{_unitdir}/fwupd.service
|
%{_unitdir}/fwupd.service
|
||||||
%{_unitdir}/fwupd-refresh.service
|
%{_unitdir}/fwupd-refresh.service
|
||||||
%{_unitdir}/fwupd-refresh.timer
|
%{_unitdir}/fwupd-refresh.timer
|
||||||
|
%{_presetdir}/fwupd-refresh.preset
|
||||||
%{_unitdir}/system-update.target.wants/
|
%{_unitdir}/system-update.target.wants/
|
||||||
%dir %{_localstatedir}/lib/fwupd
|
%dir %{_localstatedir}/lib/fwupd
|
||||||
%dir %{_datadir}/fwupd/quirks.d
|
%dir %{_datadir}/fwupd/quirks.d
|
||||||
|
1
data/motd/fwupd-refresh.preset
Normal file
1
data/motd/fwupd-refresh.preset
Normal file
@ -0,0 +1 @@
|
|||||||
|
disable fwupd-refresh.service
|
@ -11,6 +11,8 @@ con2.set('motd_fullpath', motd_fullpath)
|
|||||||
if get_option('systemd')
|
if get_option('systemd')
|
||||||
install_data(['fwupd-refresh.timer'],
|
install_data(['fwupd-refresh.timer'],
|
||||||
install_dir: systemdunitdir)
|
install_dir: systemdunitdir)
|
||||||
|
install_data(['fwupd-refresh.preset'],
|
||||||
|
install_dir: systemdsystempresetdir)
|
||||||
|
|
||||||
dynamic_options = []
|
dynamic_options = []
|
||||||
if systemd.version().version_compare('>= 243')
|
if systemd.version().version_compare('>= 243')
|
||||||
|
@ -306,6 +306,7 @@ if build_standalone and get_option('systemd')
|
|||||||
if systemdunitdir == '' and get_option('systemd')
|
if systemdunitdir == '' and get_option('systemd')
|
||||||
systemdunitdir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
|
systemdunitdir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
|
||||||
endif
|
endif
|
||||||
|
systemdsystempresetdir = systemd.get_pkgconfig_variable('systemdsystempresetdir')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if build_standalone and get_option('elogind')
|
if build_standalone and get_option('elogind')
|
||||||
|
Loading…
Reference in New Issue
Block a user