Re: [PATCH] block: partitions: efi: Always check for alternative GPT at end of drive

From: Gwendal Grignou
Date: Tue Apr 26 2016 - 17:51:35 EST


On Tue, Apr 26, 2016 at 2:15 PM, Davidlohr Bueso <dave@xxxxxxxxxxxx> wrote:
> On Tue, 26 Apr 2016, Elliott, Robert (Persistent Memory) wrote:
>

>
> I have nothing against the agpt, just pass a boot param and voila,
> you can use it. This is not some sort of recent regression we are
> talking about here. How is this such a burden all of a sudden?
Julius and I were looking at the code when we spotted the issue.

As Julius said, "just pass a boot param", is not easy on certain
machines, like phone. It is not user friendly either.
The system won't boot at all, a typical user will have to do a full
reinstall to fix the error.

Running with forced_gpt always on is not a solution either, because SD
card formatted with a plain MBR over an older image with a GPT won't
be mounted properly: that newer MBR will be ignored.

Gwendal.
>
> Thanks,
> Davidlohr