spec: muted error if there is no selinux support
Resolves: rhbz#1404214 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
82e41184ed
commit
b088337d3d
1 changed files with 2 additions and 1 deletions
|
|
@ -204,7 +204,8 @@ 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 || :
|
||||
selinuxenabled &>/dev/null && \
|
||||
restorecon %{_sysconfdir}/grub.d/00_tuned &>/dev/null || :
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue