From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 6/6] gnu: Add grub-efi. Date: Sun, 18 Dec 2016 11:54:06 +0100 Message-ID: <87y3zdo6cx.fsf@gnu.org> References: <20161105125511.29383-1-mbakke@fastmail.com> <20161105125511.29383-7-mbakke@fastmail.com> <20161105185803.GA11667@jasmine> <87h97l67kz.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <878tsww9ov.fsf@gnu.org> <87vaw087kr.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <871syny88o.fsf@gnu.org> <87oa1r8wyv.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <871sx73ink.fsf@gnu.org> <87y3zfrd7j.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIZ6b-00089L-38 for guix-devel@gnu.org; Sun, 18 Dec 2016 05:54:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cIZ6X-0004kk-Vb for guix-devel@gnu.org; Sun, 18 Dec 2016 05:54:13 -0500 In-Reply-To: <87y3zfrd7j.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (Marius Bakke's message of "Fri, 16 Dec 2016 18:33:20 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Marius Bakke Cc: guix-devel@gnu.org Hello Marius! Marius Bakke skribis: > Ludovic Court=C3=A8s writes: [...] >> It turns out I have an immediate need ;-), so I pushed this as commit >> 3eee16130d858ae96510ec1c7d38d31290de2699. Let me know if that doesn=E2= =80=99t >> seem right! > > I think you need to compile with '--with-platform=3Defi' as well. Bah, silly me. > Check /gnu/store/...grub-.../lib/grub. I still use a custom 'grub-efi' > expression (attached, needs adaption to 3eee16). Otherwise grub won't > have the required install files, even if it could detect the platform. > > Relatedly, I think the way to build a 'multi-grub' is to have one > expression for each supported grub platform, and then consolidate > out/lib/grub from each. So in essence, GRUB itself supports only one platform at a time? >> Now there are things I didn=E2=80=99t quite get. Apparently you=E2=80= =99re supposed to >> have a /boot/efi as a vfat partition, and =E2=80=98grub-install=E2=80=99= is supposed to >> detect it and install the EFI stuff, or so I thought (info "(grub) >> Installing GRUB using grub-install"). >> >> However, =E2=80=98grub-install=E2=80=99 still seems to be installing for= =E2=80=9Ci386-pc=E2=80=9D >> instead of EFI. >> >> What am I missing? > > IIRC grub-install will detect and install for the running mode (pc, efi, > etc). So in a classic chicken-and-egg situation, you need to be booted > with UEFI mode for grub to select the correct installation platform! My understanding is that it would install for UEFI if it fines /boot/efi or if --efi-directory is passed. BTW, as far as I=E2=80=99m concerned, most of the other patches are ready: https://lists.gnu.org/archive/html/guix-devel/2016-11/msg00303.html https://lists.gnu.org/archive/html/guix-devel/2016-11/msg00304.html Could you push them? The remaining issue is how to run fsck for vfat. Currently I still have a preference for something like what I suggested at: https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00095.html Thoughts? Thanks! Ludo=E2=80=99.