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: Andrei Borzenkov
Subject: Re: address@hidden: Bug#858832: calls efibootmgr with invalid options]
Date: Tue, 28 Mar 2017 20:59:30 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

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.

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.



reply via email to

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