Make %{efidir} dynamically from /etc/os-release
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
40524773a3
commit
a3296c1c92
@ -34,12 +34,8 @@
|
|||||||
%global grubeficdname gcdaa64.efi
|
%global grubeficdname gcdaa64.efi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?rhel}
|
# Figure out the right file path to use
|
||||||
%global efidir redhat
|
%global efidir %(eval echo $(grep ^ID= /etc/os-release | sed -e 's/^ID=//' -e 's/rhel/redhat/'))
|
||||||
%endif
|
|
||||||
%if 0%{?fedora}
|
|
||||||
%global efidir fedora
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user