From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: EFI GRUB configuration ignores platform, has issues Date: Sat, 22 Apr 2017 10:36:33 +0200 Message-ID: <8760hwet4e.fsf@fastmail.com> References: <5aff3524-a5b8-f70f-92d6-af6ff70ab2f6@vanbakel.io> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1qX1-0000sF-E4 for help-guix@gnu.org; Sat, 22 Apr 2017 04:36:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1qWy-0003n1-A6 for help-guix@gnu.org; Sat, 22 Apr 2017 04:36:39 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:34941) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d1qWx-0003mi-T6 for help-guix@gnu.org; Sat, 22 Apr 2017 04:36:36 -0400 In-Reply-To: <5aff3524-a5b8-f70f-92d6-af6ff70ab2f6@vanbakel.io> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Isaac van Bakel , help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Isaac! Isaac van Bakel writes: > Hi Guix, > > I've been wrestling with a fresh real install for the past day or so. > > Currently, the system seems to initialize fine with my config, with the=20 > exception of GRUB. > I wanted to get grub-efi working, so I added two things on top of the=20 > bare-bones config: > > (use-modules (gnu packages)) at the start. > > (grub (specification->package "grub-efi")) to my grub-configuration. > > This all seems to work about as I expect - the grub install doesn't=20 > complain about a lack of a BIOS partition, and it tries its best. > The issue seems to be in part that grub-install for EFI tries to use=20 > i386-pc for a platform, even when I pass --system=3Dx86_64-linux to guix= =20 > system init, and the USB is a x86_64 one. > It tries to access a directory in /gnu/store=20 > //lib/grub/i386-pc which doesn't exist, and promptly fails. Grub will try to guess the target platform automatically. Since the installation image is not yet UEFI enabled[0], your system has booted in BIOS mode, and grub tries to install the BIOS payload (which is called i386-pc even on 64-bit platforms). > If I copy over the x86_64 folder to i386-pc, the install gets past this=20 > point, and I can go on to boot as (apparently) normal. Do you mean copy the "/gnu/store//lib/grub/x86_64-efi" folder to "/gnu/store//lib/grub/i386-pc"? The store is read-only for good reasons and you should never do this under normal circumstances. > However, I'm not sure whether to trust the boot totally, and I'm worried= =20 > about it being unreproducable without manual effort. I find it interesting that it worked at all. Does '/sys/firmware/efi' exist on the booted system? If that is the case, further invocations of `grub-install` (which is called when running `guix system reconfigure`) should detect the EFI platform and install the appropriate payload. Otherwise, I would guess it has installed a BIOS bootloader, in which case you should switch to the regular "grub" package. Both of these approaches should be future-proof if they work after `guix system reconfigure` on the booted system. The safest approach to a native UEFI GuixSD system currently is booting another UEFI enabled Linux image, installing the Guix binary inside the live environment, and do `guix system init` from there. It's pretty involved, but we hope to have UEFI support in the official images Soon=E2= =84=A2. Hope this helps, and sorry for the confusion! [0] https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00407.html --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlj7FhEACgkQoqBt8qM6 VPpdvwgAmlsfe0fIFgTHvpoP1Az5LurImPDxCR/SwW/Yj0aT8PYT702lefJ+MKGe 6bXgrKNiKU/WtEP2wppC2cMmU5Qf3bMmfjkpimag2Oallee4sSMsa6Pg1zXvs17Y +onf1HzV7TClNrZJ7pbZ4Tsjaa9IbhvBnaSJTtqQO3nWjgte+5SB6jT/XH8ln8+w JQFmmQugvmn2n0ohYf1UgYZbnFJs/2gC7dztKyy53H5op3+XXxvFL76XeYTd5w5i mlEUQ/FwiyoHrKPeXmgr4V/K7CZrGeFhkLdN0qydSwHnkPs0GOfDzPwLvdnN0dbf zW400B6hum17I+ylFWKH9nJA7EkNyQ== =C01H -----END PGP SIGNATURE----- --=-=-=--