remove 00_tuned grub2 template upon tuned uninstall

resolves: rhbz#1178310
This commit is contained in:
Jaroslav Škarvada 2015-01-05 17:19:36 +01:00
parent d54d80c22c
commit 26e3883ad7

View File

@ -1,7 +1,7 @@
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 2.4.1
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
Source: https://fedorahosted.org/releases/t/u/tuned/tuned-%{version}.tar.bz2
URL: https://fedorahosted.org/tuned/
@ -112,6 +112,12 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
%postun
%systemd_postun_with_restart tuned.service
# conditional support for grub2, grub2 is not available on all architectures
# and tuned is noarch package, thus the following hack is needed
if [ "$1" == "0" ]; then
rm -f %{_sysconfdir}/grub.d/00_tuned || :
fi
%triggerun -- tuned < 2.0-0
# remove ktune from old tuned, now part of tuned
@ -221,6 +227,10 @@ fi
%{_mandir}/man7/tuned-profiles-compat.7*
%changelog
* Mon Jan 5 2015 Jaroslav Škarvada <jskarvad@redhat.com> - 2.4.1-2
- remove 00_tuned grub2 template upon tuned uninstall
resolves: rhbz#1178310
* Thu Oct 16 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 2.4.1-1
- new-release
- fixed return code of tuned grub template