[PATCH v5 38/46] boot: Consider non-bootable partitions

Tom Rini trini at konsulko.com
Wed Apr 2 16:28:51 CEST 2025


On Sat, Mar 15, 2025 at 02:25:58PM +0000, Simon Glass wrote:

> Any 'bootable' flag in a DOS partition causes boostd to only scan
> bootable partitions for that media. This can mean that extlinux.conf
> files on the root disk are missed.
> 
> Put this logic behind a flag and update the documentation.
> 
> For now, the flag is enabled, to preserve existing behaviour. Future
> work may provide a command (or some other mechanism) to control this.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
> (no changes since v4)
> 
> Changes in v4:
> - Rewrite the commit message
> - Enable the flag by default
> 
> Changes in v3:
> - Add new patch to consider non-bootable partitions
> 
>  boot/bootdev-uclass.c            | 4 +++-
>  cmd/bootflow.c                   | 2 +-
>  doc/develop/bootstd/overview.rst | 5 +++--
>  include/bootflow.h               | 2 ++
>  test/boot/bootdev.c              | 1 +
>  test/boot/bootflow.c             | 5 +++--
>  6 files changed, 13 insertions(+), 6 deletions(-)

Having spent another 10 minutes just now trying to understand things,
again:
- The commit message, and the implementation are either in disagreement
  or just too vague. Saying "to preserve existing behaviour" is unclear
  about which behavior is being preserved, since we're setting the flag
  to continue to only check bootable flagged partitions
  (BOOTFLOWIF_ONLY_BOOTABLE). But then we would continue to miss
  extlinux.conf files on root filesystems, which would seem to be the
  bug that needed fixing?
- It's still unclear if this makes bootstd match the exiting distro
  script behavior or not, and from your other emails it sounded like you
  were expecting someone else to dig around.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250402/7f853031/attachment.sig>


More information about the U-Boot mailing list