grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: Bug#858832: calls efibootmgr with invalid options]


From: Steve McIntyre
Subject: Re: address@hidden: Bug#858832: calls efibootmgr with invalid options]
Date: Mon, 3 Apr 2017 13:01:38 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Tue, Mar 28, 2017 at 08:59:30PM +0300, Andrei Borzenkov wrote:
>28.03.2017 09:34, Peter Palfrader пишет:
>> } /dev/md2        953M  176K  953M   1% /boot/efi
>
>Sorry, that's not going to work. Even assuming that grub can map from
>Linux MD to underlying physical device + partition (as that is what
>efibootmgr needs, we cannot simply pass /dev/md2 to it), this will
>obviously fail unless metadata is 0.90 or 1.0 (and current mdadm default
>is 1.2). And even if you are careful enough - EFI application is free to
>write to ESP, so unless you have EFI driver for Linux MD it is no go to
>try to mirror it, as you are never sure whether mirrors are identical
>after boot. And if you have EFI driver for Linux MD you need to modify
>efibootmgr to understand it.

ACK, good catch.

>We need to return better error message here to explain what happens
>though, that's the actual bug.
>
>The (IMHO) correct way to handle ESP redundancy is to call "grub-install
>/path/to/first/ESP /path/to/second/ESP". I have half-finished patch
>allowing this, but it will need distributions cooperation to actually be
>useful.

More than happy to help with that - it's something I've been wanting
for a while.

-- 
Steve McIntyre, Cambridge, UK.                                address@hidden
"I used to be the first kid on the block wanting a cranial implant,
 now I want to be the first with a cranial firewall. " -- Charlie Stross




reply via email to

[Prev in Thread] Current Thread [Next in Thread]