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: Wed, 21 Dec 2016 10:12:07 +0100 Message-ID: <874m1xodco.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> <87y3zdo6cx.fsf@gnu.org> <87lgvdnw23.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <87lgvc6vp0.fsf@gnu.org> <87lgvbc41t.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <87fulj1uxc.fsf@gnu.org> <87inqfbkmr.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <87d1gmiu5b.fsf@gnu.org> <87a8bqbr0t.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <871sx2h79h.fsf@gnu.org> <877f6ubfvb.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]:52327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJcwZ-0005pZ-T7 for guix-devel@gnu.org; Wed, 21 Dec 2016 04:12:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJcwV-0003ml-4v for guix-devel@gnu.org; Wed, 21 Dec 2016 04:12:15 -0500 In-Reply-To: <877f6ubfvb.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (Marius Bakke's message of "Tue, 20 Dec 2016 19:43:52 +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 Marius Bakke skribis: > Ludovic Court=C3=A8s writes: [...] >>>> I=E2=80=99m failing at installing GuixSD on a new laptop I have here. >>>> =E2=80=98efibootmgr=E2=80=99 exits with code 2 and this message: >>>> >>>> EFI variables are not supported on this system. >>>> >>>> (which =E2=80=98grub-install=E2=80=99 happily ignores.) >>>> >>>> This is because /sys/firmware/efi is missing, which apparently is >>>> because I booted off the GuixSD USB image (=E2=80=9Clegacy=E2=80=9D) a= nd not in EFI >>>> mode. >>>> >>>> What would you suggest? :-) >>> >>> What I did was a normal BIOS install, backup the grub.cfg, switch laptop >>> to UEFI (only) and boot a Debian live CD. From there "apt-get install >>> grub-efi; grub-install /dev/sda" and afterwards copy grub.cfg in place. >>> >>> You may want to add "insmod efi_gop" and "insmod efi_uga" to grub.cfg, >>> otherwise you won't get a framebuffer until the proper video driver is >>> loaded (which may require unlocking root partition etc). >> >> Wait, all I need is /sys/firmware/efi in the install image. Is it >> impossible? > > Perhaps you can trick Linux into creating it without booting UEFI mode. > Not sure if grub/efibootmgr actually need to read or write there. =E2=80=98efivar=E2=80=99 (used by =E2=80=98efibootmgr=E2=80=99) uses it, an= d otherwise bails out with the error message shown above. Thanks, Ludo=E2=80=99.