Bug#858832: [weasel at debian.org: Bug#858832: calls efibootmgr with invalid options]

Andrei Borzenkov arvidjaar at gmail.com
Tue Mar 28 17:59:30 UTC 2017


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.



More information about the Pkg-grub-devel mailing list