1
0
Fork 0

spec: fixed conditional support for grub2 to work with selinux

Resolves: rhbz#1351937

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2016-07-01 19:01:30 +02:00
parent 6bf3afa9d3
commit ddeadd34eb

View file

@ -189,6 +189,7 @@ fi
# and tuned is noarch package, thus the following hack is needed
if [ -d %{_sysconfdir}/grub.d ]; then
cp -a %{_datadir}/tuned/grub2/00_tuned %{_sysconfdir}/grub.d/00_tuned
selinuxenabled && restorecon %{_sysconfdir}/grub.d/00_tuned || :
fi