mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 06:22:43 +00:00
Avoid grub2-efi package to overwrite existing /boot/grub2/grubenv file
The grub2-efi package create a /boot/grub2/grubenv symlink that points to /boot/efi/EFI/fedora/grubenv that's where the real grubenv file is looked up by GRUB on an EFI installation. But currently if the grub2-efi is installed on a legacy BIOS install, it will overwrite an existing /boot/grub2/grubenv file with a broken symlink. So mark it as %config(noreplace) to avoid loosing an existing grubenv. Resolves: rhbz#1687323 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
parent
388b8a4e20
commit
b9750a4853
1 changed files with 1 additions and 1 deletions
|
@ -532,7 +532,7 @@ touch ${RPM_BUILD_ROOT}/boot/%{name}/grub.cfg \
|
|||
%dir %attr(0700,root,root)%{efi_esp_dir}/fonts \
|
||||
%dir %attr(0700,root,root)/boot/loader/entries \
|
||||
%ghost %config(noreplace) %attr(0700,root,root)%{efi_esp_dir}/grub.cfg \
|
||||
/boot/grub2/grubenv \
|
||||
%config(noreplace) /boot/grub2/grubenv \
|
||||
%ghost %config(noreplace) %attr(0700,root,root)%{efi_esp_dir}/grubenv \
|
||||
%{expand:%if 0%{?without_efi_modules} \
|
||||
%exclude %{_libdir}/grub/%{6} \
|
||||
|
|
Loading…
Reference in a new issue