- Add --root-dev-only flag

This commit is contained in:
eabdullin 2024-02-15 10:29:46 +03:00
parent b82af8d853
commit 86266815e2

View File

@ -16,7 +16,7 @@
Name: grub2
Epoch: 1
Version: 2.06
Release: 70%{?dist}.2.alma.1
Release: 70%{?dist}.2.alma.2
Summary: Bootloader with support for Linux, Multiboot and more
License: GPLv3+
URL: http://www.gnu.org/software/grub/
@ -340,7 +340,7 @@ BOOT_UUID=$(%{name}-probe --target=fs_uuid ${GRUB_HOME})
GRUB_DIR=$(%{name}-mkrelpath ${GRUB_HOME})
cat << EOF > ${EFI_HOME}/grub.cfg.stb
search --no-floppy --fs-uuid --set=dev ${BOOT_UUID}
search --no-floppy --root-dev-only --fs-uuid --set=dev ${BOOT_UUID}
set prefix=(\$dev)${GRUB_DIR}
export \$prefix
configfile \$prefix/grub.cfg
@ -524,6 +524,9 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
%endif
%changelog
* Thu Feb 15 2024 Eduard Abdullin <eabdullin@almalinux.org> - 2.06-70.2.alma.2
- Add --root-dev-only flag
* Thu Jan 25 2024 Eduard Abdullin <eabdullin@almalinux.org> - 2.06-70.2.alma.1
- search command: add flag to only search root dev