mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 14:32:58 +00:00
spec: Modified posttrans to harden grub config detection
Resolves: #2235692 Signed-off-by: Nicolas Frayer <nfrayer@redhat.com>
This commit is contained in:
parent
6d1f9f4a80
commit
5c4529ecac
1 changed files with 7 additions and 3 deletions
10
grub2.spec
10
grub2.spec
|
@ -17,7 +17,7 @@
|
||||||
Name: grub2
|
Name: grub2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.06
|
Version: 2.06
|
||||||
Release: 97%{?dist}
|
Release: 98%{?dist}
|
||||||
Summary: Bootloader with support for Linux, Multiboot and more
|
Summary: Bootloader with support for Linux, Multiboot and more
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://www.gnu.org/software/grub/
|
URL: http://www.gnu.org/software/grub/
|
||||||
|
@ -348,8 +348,8 @@ if test ! -f ${EFI_HOME}/grub.cfg; then
|
||||||
grub2-mkconfig -o ${EFI_HOME}/grub.cfg
|
grub2-mkconfig -o ${EFI_HOME}/grub.cfg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if grep -q "configfile" ${EFI_HOME}/grub.cfg; then
|
if ((grep -q "configfile" ${EFI_HOME}/grub.cfg || grep -q "source" ${EFI_HOME}/grub.cfg) && ! grep -q "# It is automatically generated by grub2-mkconfig using templates" ${EFI_HOME}/grub.cfg); then
|
||||||
exit 0 # already unified, nothing to do
|
exit 0 #Already unified
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create a stub grub2 config in EFI
|
# create a stub grub2 config in EFI
|
||||||
|
@ -544,6 +544,10 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 31 2023 Nicolas Frayer <nfrayer@redhat.com> - 2.06-98
|
||||||
|
- spec: Modified posttrans to harden grub config detection
|
||||||
|
- Resolves: #2235692
|
||||||
|
|
||||||
* Tue Aug 22 2023 Nicolas Frayer <nfrayer@redhat.com> - 2.06-97
|
* Tue Aug 22 2023 Nicolas Frayer <nfrayer@redhat.com> - 2.06-97
|
||||||
- efi/http: change uint32_t to uintn_t
|
- efi/http: change uint32_t to uintn_t
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue