Improve disk image detection in efi_bootmgr
Get series with b4
b4 am [email protected] change-id 20251008-detect_disk_image_type-4f04a2a8d989Versions newest first · linked by author and title
- v8 Latest2 patches 2 repliesIn review
- v72 patches 1 replySuperseded
- v62 patches 4 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 | 1 patch | 1 reply | Superseded | |
| v4 | 1 patch | 1 reply | Superseded | |
| v3 | 1 patch | 1 reply | Superseded | |
| v2 | 1 patch | 2 replies | Superseded | |
| v1 | 1 patch | 2 replies | Superseded |
Changes in v8 from the cover letter
- Cleanup part_driver_lookup_type history after being removed and added again.
- Passing CI: https://github.com/u-boot/u-boot/pull/816
- v7 link: https://lore.kernel.org/u-boot/[email protected]/
- v6 link: https://lore.kernel.org/u-boot/[email protected]/
- v5 link: https://lore.kernel.org/u-boot/[email protected]/
- v4 link: https://lore.kernel.org/u-boot/[email protected]/
- v3 link: https://lore.kernel.org/u-boot/[email protected]/
- v2 link: https://lore.kernel.org/u-boot/[email protected]/
- v1 link: https://lore.kernel.org/u-boot/[email protected]/
Patches in v8 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | part: Export part_driver_lookup_type for external usedisk/ include/ | +22 | 1 reply | |
| 2/2 | efi_loader: Improve disk image detection in efi_bootmgrlib/ | +35 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Ilias Apalodimas |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v8 0/2] Improve disk image detection in efi_bootmgr
Enhances the process for identifying disk images within the EFI boot manager. Utilize part_driver_lookup_type() to verify the validity of a downloaded file as a disk image, rather than depending on file extensions.
part_driver_lookup_type() is now used in the prepare_loaded_image() function in the EFI boot manager to detect partitions on a block device created from a downloaded image. This allows the boot manager to boot from any disk image that can be recognized by a partition driver, not just ISO and IMG images.
Update prepare_loaded_image() to create the ramdisk block device internally, obtain the blk_desc and use part_driver_lookup_type() to detect a valid partition table.
In try_load_from_uri_path(), try prepare_loaded_image() first to detect disk images, and fall back to PE-COFF detection only if that fails.
Include part.h in the EFI loader and export part_driver_lookup_type and add its prototype and documentation in include/part.h. This makes the partition-driver lookup available to other code paths that need to detect partition tables on a block descriptor.
---
Changes in v8:
- Cleanup part_driver_lookup_type history after being removed and added again.
- Passing CI: https://github.com/u-boot/u-boot/pull/816
- v7 link: https://lore.kernel.org/u-boot/[email protected]/
- v6 link: https://lore.kernel.org/u-boot/[email protected]/
- v5 link: https://lore.kernel.org/u-boot/[email protected]/
- v4 link: https://lore.kernel.org/u-boot/[email protected]/
- v3 link: https://lore.kernel.org/u-boot/[email protected]/
- v2 link: https://lore.kernel.org/u-boot/[email protected]/
- v1 link: https://lore.kernel.org/u-boot/[email protected]/
---
Javier Tia (2):
part: Export part_driver_lookup_type for external use
efi_loader: Improve disk image detection in efi_bootmgr
disk/part.c | 18 +--------------- include/part.h | 21 +++++++++++++++++++ lib/efi_loader/efi_bootmgr.c | 49 +++++++++++++++++++++++++++++++------------- 3 files changed, 57 insertions(+), 31 deletions(-)
---
base-commit: 0ee639ff5af33342c6c2f4579e210d707abc9bc2
change-id: 20251008-detect_disk_image_type-4f04a2a8d989
Best regards,
Signature · 1 line
Javier Tia <[email protected]>