Make %{efidir} dynamically from /etc/os-release

Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
Peter Jones 2015-07-07 10:19:01 -04:00
parent 40524773a3
commit a3296c1c92

View File

@ -34,12 +34,8 @@
%global grubeficdname gcdaa64.efi
%endif
%if 0%{?rhel}
%global efidir redhat
%endif
%if 0%{?fedora}
%global efidir fedora
%endif
# Figure out the right file path to use
%global efidir %(eval echo $(grep ^ID= /etc/os-release | sed -e 's/^ID=//' -e 's/rhel/redhat/'))
%endif