From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cv0gj-0006Yj-OZ for mharc-grub-devel@gnu.org; Mon, 03 Apr 2017 08:02:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cv0gg-0006Wm-Lz for grub-devel@gnu.org; Mon, 03 Apr 2017 08:02:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cv0gd-0006dH-K2 for grub-devel@gnu.org; Mon, 03 Apr 2017 08:02:22 -0400 Received: from cheddar.halon.org.uk ([93.93.131.118]:60337) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cv0gd-0006XD-EL for grub-devel@gnu.org; Mon, 03 Apr 2017 08:02:19 -0400 Received: from bsmtp by cheddar.halon.org.uk with local-bsmtp (Exim 4.84_2) (envelope-from ) id 1cv0gU-0002Q5-MS; Mon, 03 Apr 2017 13:02:10 +0100 Received: from steve by tack.local with local (Exim 4.84_2) (envelope-from ) id 1cv0g3-00020v-ND; Mon, 03 Apr 2017 13:01:43 +0100 Date: Mon, 3 Apr 2017 13:01:38 +0100 From: Steve McIntyre To: The development of GNU GRUB Cc: Peter Palfrader , 858832-done@bugs.debian.org Subject: Re: [weasel@debian.org: Bug#858832: calls efibootmgr with invalid options] Message-ID: <20170403120138.GA5825@einval.com> References: <20170327124133.GG9002@riva.ucam.org> <77c9256a-784f-2063-86c4-afa3990f6155@gmail.com> <20170328063411.GJ10005@sarek.noreply.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-attached: unknown User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 93.93.131.118 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2017 12:02:23 -0000 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. steve@einval.com "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