- Add check that --root-dev-only exists in grub.cfg
This commit is contained in:
parent
86266815e2
commit
adde6846f5
@ -16,7 +16,7 @@
|
||||
Name: grub2
|
||||
Epoch: 1
|
||||
Version: 2.06
|
||||
Release: 70%{?dist}.2.alma.2
|
||||
Release: 70%{?dist}.2.alma.3
|
||||
Summary: Bootloader with support for Linux, Multiboot and more
|
||||
License: GPLv3+
|
||||
URL: http://www.gnu.org/software/grub/
|
||||
@ -332,8 +332,10 @@ if test ! -f ${EFI_HOME}/grub.cfg; then
|
||||
fi
|
||||
|
||||
if grep -q "configfile" ${EFI_HOME}/grub.cfg; then
|
||||
if grep -q "--root-dev-only" ${EFI_HOME}/grub.cfg; then
|
||||
exit 0 # already unified, nothing to do
|
||||
fi
|
||||
fi
|
||||
|
||||
# create a stub grub2 config in EFI
|
||||
BOOT_UUID=$(%{name}-probe --target=fs_uuid ${GRUB_HOME})
|
||||
@ -524,6 +526,9 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Mar 25 2024 Eduard Abdullin <eabdullin@almalinux.org> - 2.06-70.2.alma.3
|
||||
- Add check that --root-dev-only exists in grub.cfg
|
||||
|
||||
* Thu Feb 15 2024 Eduard Abdullin <eabdullin@almalinux.org> - 2.06-70.2.alma.2
|
||||
- Add --root-dev-only flag
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user