mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-28 07:44:52 +00:00
Make %{efidir} dynamically from /etc/os-release
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
40524773a3
commit
a3296c1c92
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue