Re: [PATCH 0/2] boot to a mapped device

From: Mike Snitzer
Date: Thu Sep 27 2018 - 10:23:40 EST


On Wed, Sep 26 2018 at 3:16am -0400,
Richard Weinberger <richard.weinberger@xxxxxxxxx> wrote:

> Helen,
>
> On Wed, Sep 26, 2018 at 7:01 AM Helen Koike <helen.koike@xxxxxxxxxxxxx> wrote:
> >
> > This series is reviving an old patchwork.
> > Booting from a mapped device requires an initramfs. This series is
> > allows for device-mapper targets to be configured at boot time for
> > use early in the boot process (as the root device or otherwise).
>
> What is the reason for this patch series?
> Setting up non-trivial root filesystems/storage always requires an
> initramfs, there is nothing
> wrong about this.

Exactly. If phones or whatever would benefit from this patchset then
say as much.

I will not accept this patchset at this time.

> > Example, the following could be added in the boot parameters.
> > dm="lroot,,,rw, 0 4096 linear 98:16 0, 4096 4096 linear 98:32 0" root=/dev/dm-0
>
> Hmmm, the new dm= parameter is anything but easy to get right.

No, it isn't.. exposes way too much potential for users hanging
themselves.