forked from pool/tuned
Accepting request 334789 from home:pluskalm:branches:Base:System
- Fix build for openSUSE Leap (lack of tmpfiles.d macro) OBS-URL: https://build.opensuse.org/request/show/334789 OBS-URL: https://build.opensuse.org/package/show/Base:System/tuned?expand=0&rev=39
This commit is contained in:
committed by
Git OBS Bridge
parent
13fd8ee5cb
commit
587b69d4d6
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 29 12:41:36 UTC 2015 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Fix build for openSUSE Leap (lack of tmpfiles.d macro)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 17 16:10:42 UTC 2015 - mpluskal@suse.com
|
Mon Aug 17 16:10:42 UTC 2015 - mpluskal@suse.com
|
||||||
|
|
||||||
|
@@ -157,7 +157,11 @@ ln -sf service %{buildroot}%{_sbindir}/rctuned
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%service_add_post %{name}.service
|
%service_add_post %{name}.service
|
||||||
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
|
%if 0%{?suse_version} <= 1320
|
||||||
|
systemd-tmpfiles --create %{_tmpfilesdir}/%{name}.conf >/dev/null 2>&1 || :
|
||||||
|
%else
|
||||||
|
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
|
||||||
|
%endif
|
||||||
# convert active_profile from full path to name (if needed)
|
# convert active_profile from full path to name (if needed)
|
||||||
sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' %{_sysconfdir}/tuned/active_profile
|
sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' %{_sysconfdir}/tuned/active_profile
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user