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:
parent
6bf3afa9d3
commit
ddeadd34eb
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue