[PATCH 1/2] distro_bootcmd: Add support for customizable find_distro_rootpart
Kory Maincent
kory.maincent at bootlin.com
Mon Nov 3 11:52:25 CET 2025
On Sun, 2 Nov 2025 20:54:02 +0100
Simon Glass <sjg at chromium.org> wrote:
> Hi Kory,
>
> On Fri, 31 Oct 2025 at 17:36, Kory Maincent (TI.com) <
> kory.maincent at bootlin.com> wrote:
> >
> > Commit d0ba0ca45a49 ("distro_bootcmd: Set distro_bootpart_uuid for block
> > devices") added support for the distro_boot_part_uuid environment variable
> > to allow using PARTUUID in the kernel command line.
> >
> > However, the way it was written only supports the case where the boot
> files
> > and the rootfs are located in the same partition. There are many cases
> > where the boot partition and rootfs partition are separate.
> >
> > Add a customizable find_distro_rootpart command to allow each board to
> > define its own logic for locating the rootfs partition. This provides
> > flexibility for boards with custom partition layouts while maintaining
> > backward compatibility for the default case where boot and rootfs share
> > the same partition.
> >
> > Signed-off-by: Kory Maincent (TI.com) <kory.maincent at bootlin.com>
> > ---
> > doc/develop/distro.rst | 11 +++++++++++
> > include/config_distro_bootcmd.h | 10 +++++++---
> > 2 files changed, 18 insertions(+), 3 deletions(-)
> >
>
> How about moving to standard boot and look at this there?
Ok, I will take a look at it.
Regards,
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
More information about the U-Boot
mailing list