From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Wingo Subject: Re: guix system init: failed to get path of `/boot/efi' Date: Mon, 18 Sep 2017 11:04:33 +0200 Message-ID: <87efr45qe6.fsf@igalia.com> References: <5368e2b3-3d1d-b4c7-1c87-a86fc21be8a6@crazy-compilers.com> 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]:48235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtrzZ-0000te-QY for guix-devel@gnu.org; Mon, 18 Sep 2017 05:05:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtrzU-00068a-UN for guix-devel@gnu.org; Mon, 18 Sep 2017 05:05:25 -0400 Received: from pb-sasl1.pobox.com ([64.147.108.66]:57855 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dtrzU-0005sz-Nn for guix-devel@gnu.org; Mon, 18 Sep 2017 05:05:20 -0400 In-Reply-To: <5368e2b3-3d1d-b4c7-1c87-a86fc21be8a6@crazy-compilers.com> (Hartmut Goebel's message of "Mon, 18 Sep 2017 10:04:05 +0200") 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: Hartmut Goebel Cc: guix-devel On Mon 18 Sep 2017 10:04, Hartmut Goebel wri= tes: > Hi, > > For installing a GuixSD in e fresh system I followed the installation > instructions in the manual. As described in the manual, I did set > > =C2=A0 (bootloader (bootloader-configuration > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 (bootloader grub-efi-bootloader) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 (target "/boot/efi"))) > > But running > > root@gnu ~# ls -d /mnt/boot/efi > /mnt/boot/efi/ > root@gnu ~# guix system init /mnt/etc/config.scm /mnt > > failed with: > > populating '/mnt'... > Installing for x86_64-efi platform. > /gnu/store/=E2=80=A6-grub-efi-2.02/sbin/grub-install: error: failed to get > canonical path of `/boot/efi'. > > Obviously grub-install is not "chroot"-ing to /mnt. > > Is this expected behavior? And what is the correct solution? You need to mount the EFI partition to /boot/efi in the installation system. As the manual says in "Preparing for Installation" (perhaps not clearly enough): If you instead wish to use EFI-based GRUB, a FAT32 =E2=80=9CEFI System Partition=E2=80=9D (ESP) is required. This partition should be mounted = at =E2=80=98/boot/efi=E2=80=99 and must have the =E2=80=98esp=E2=80=99 flag= set. Andy