Skip to content

search: new --efidisk-only option on EFI systems

Renaud Métrich grub-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 1 replyIn review
  2. v43 patches 0 repliesSuperseded
  3. v32 patches 2 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3search: fixed bug stopping iteration when --no-floppy is usedgrub-core/commands/search.c+1 -10 replies
2/3search: refactor --no-floppy option to have something genericgrub-core/commands/search.c grub-core/commands/search_wrap.c include/grub/search.h+22 -130 replies
3/3search: new --efidisk-only option on EFI systemsdocs/grub.texi grub-core/commands/search.c grub-core/commands/search_wrap.c +1 more+30 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/3] search: new --efidisk-only option on 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.

This set of patches also refactor handling of --no-floppy option.

Changes in this version compared to reviewed one (PATCH v3, by Daniel):

- split --no-floppy refactoring (patch 2/3)
- fixed unitialized declaration of stack variable 'flags' (patch 2/3)
- documented --efidisk-only option (patch 3/3)