Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZlkCN-0006wn-TW for mharc-grub-devel@gnu.org; Mon, 12 Oct 2015 16:59:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlkCK-0006w3-5M for grub-devel@gnu.org; Mon, 12 Oct 2015 16:59:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlkCG-0002ny-P4 for grub-devel@gnu.org; Mon, 12 Oct 2015 16:59:56 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:31506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlkCG-0002no-IF for grub-devel@gnu.org; Mon, 12 Oct 2015 16:59:52 -0400 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t9CKxmkL030732 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 12 Oct 2015 20:59:48 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t9CKxlQY026769 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 12 Oct 2015 20:59:48 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t9CKxkPE002473; Mon, 12 Oct 2015 20:59:46 GMT Received: from olila.local.net-space.pl (/10.175.249.186) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 12 Oct 2015 13:59:46 -0700 Date: Mon, 12 Oct 2015 22:59:36 +0200 From: Daniel Kiper To: Andrei Borzenkov Subject: Re: grub-lnstall option (UEFI) for chainloading Message-ID: <20151012205936.GF6226@olila.local.net-space.pl> References: <5517EBD8.8070901@zen.co.uk> <20150329161224.5192abb7@opensuse.site> <5519183F.2040509@gmail.com> <5571AA84.9060105@zen.co.uk> <20150606113831.44c54ebd@opensuse.site> <55EE0413.6010800@zen.co.uk> <20151012163939.GA17235@router-fw-old.local.net-space.pl> <561C1338.8050301@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <561C1338.8050301@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: userv0022.oracle.com [156.151.31.74] Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by userp1040.oracle.com id t9CKxmkL030732 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 Cc: The development of GNU GRUB , phcoder@gmail.com, Daniel Kiper X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Oct 2015 20:59:57 -0000 On Mon, Oct 12, 2015 at 11:08:24PM +0300, Andrei Borzenkov wrote: > 12.10.2015 19:39, Daniel Kiper =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > >On Mon, Oct 12, 2015 at 12:31:54PM +0300, Andrei Borzenkov wrote: > >>On Tue, Sep 8, 2015 at 12:39 AM, Barry Jackson w= rote: > >>>On 06/06/15 09:38, Andrei Borzenkov wrote: > >>>> > >>>>?? Fri, 05 Jun 2015 14:56:20 +0100 > >>>>Barry Jackson ??????????: > >>> > >>> > >>>>>Any progress on this? > >>>>> > >>>> > >>>> > >>>>Not really, sorry. Do you have any suggestion how such option shoul= d be > >>>>named? > >>>> > >>> > >>>Sorry for delay - this got lost in the noise. > >>> > >>>Well something like --no-id-or-nvram ?? > >>> > >>>Not really bothered about the name! :) > >> > >>I was about to suggest a patch when I realized that this probably is > >>currently useless on EFI. I.e. to actually chainload grub on EFI it > >>must reside on a partition accessible by firmware which practically > >>means it should be ESP. > >> > >>Unless someone submits patch to make grub2 EFI core.img multiboot2 > >>compliant with tag to skip ExitBootServices. > > > >Relevant patches waiting for review for months. I am working on v3. > >If they are upstreamed I will be happy too. > > > > Your patches implement "client side" support (loading MB2 images); OK but they provide what you need here. So, it does not fully invalidate what I said earlier. > but EFI grub is not MB2 and has no provision for being loaded this > way. Also it is PE, not ELF. MB2 header may live in PE, ELF or even in file which does not have common= ly known format. > Actually chainloading probably could be made to work on arbitrary > filesystem if argument parsing is added (to pass along cmdpath). So, it looks that MB2 with my extensions should make it work. Daniel