boot: Consider non-bootable partitions
authorSimon Glass <sjg@chromium.org>
Sat, 15 Mar 2025 14:25:58 +0000 (14:25 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 3 Apr 2025 17:41:55 +0000 (11:41 -0600)
commit6acb0d28b06c408740e8b80e4015e1e656c7faf4
treeb929806e470571ea6b75394d0938751e70d3a221
parent8d6097d30041e8b0f0238a30e877967895f738f3
boot: Consider non-bootable partitions

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 the existing behaviour of
bootstd which is to ignore non-bootable partitions so long as there is
at least one bootable partition on the disk.  Future work may provide a
command (or some other mechanism) to control this.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootdev-uclass.c
cmd/bootflow.c
doc/develop/bootstd/overview.rst
include/bootflow.h
test/boot/bootdev.c
test/boot/bootflow.c