]> git.ipfire.org Git - thirdparty/grub.git/commit
commands/search: Add new --efidisk-only option for EFI systems
authorRenaud Métrich <rmetrich@redhat.com>
Mon, 7 Mar 2022 10:06:20 +0000 (11:06 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 4 Apr 2022 16:07:04 +0000 (18:07 +0200)
commit66533438810bd4d00520bd65a0d47b33b5929274
tree8225fa231be066742b6f243093c19ffce885e6f7
parent21aed7b88a5ee1495edf3b6b8f4ee3a6db447d59
commands/search: Add new --efidisk-only option for EFI systems

When using "search" on EFI systems, we sometimes want to exclude devices
that are not EFI disks, e.g. md, lvm. This is typically used when
wanting to chainload when having a software raid (md) for EFI partition:
with no option, "search --file /EFI/redhat/shimx64.efi" sets root envvar
to "md/boot_efi" which cannot be used for chainloading since there is no
effective EFI device behind.

Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
docs/grub.texi
grub-core/commands/search.c
grub-core/commands/search_wrap.c
include/grub/search.h