From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 31 18:55:33 2018 Received: (at 30311) by debbugs.gnu.org; 31 Jan 2018 23:55:33 +0000 Received: from localhost ([127.0.0.1]:51670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eh2E1-0007LJ-KJ for submit@debbugs.gnu.org; Wed, 31 Jan 2018 18:55:33 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:44674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eh2E0-0007LB-1y for 30311@debbugs.gnu.org; Wed, 31 Jan 2018 18:55:32 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 35ADB11C51; Thu, 1 Feb 2018 00:55:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id stgyxG8kZ9dL; Thu, 1 Feb 2018 00:55:30 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 373AE11C2D; Thu, 1 Feb 2018 00:55:30 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ricardo Wurmus Subject: Re: bug#30311: efi-less grub install fails References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 13 =?utf-8?Q?Pluvi=C3=B4se?= an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 01 Feb 2018 00:55:29 +0100 In-Reply-To: (Ricardo Wurmus's message of "Wed, 31 Jan 2018 19:55:58 +0100") Message-ID: <87y3kdoa6m.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30311 Cc: Danny Milosavljevic , Marius Bakke , 30311@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Heya, Ricardo Wurmus skribis: > =E2=80=9Cguix system init=E2=80=9D fails with a configuration file that s= pecifies > grub-bootloader (not grub-efi-bootloader). > > =E2=80=9Cgrub-install=E2=80=9D reports an error about =E2=80=9Clib/grub/x= 86_64-efi/modinfo.sh=E2=80=9D > not being available. It suggests passing =E2=80=9C--target=E2=80=9D or = =E2=80=9C--device=E2=80=9D. > > Our invocation of grub-install does not include a =E2=80=9C--target=E2=80= =9D argument. > Only after I edited it to pass =E2=80=9C--target=3Di386-pc=E2=80=9D did = =E2=80=9Cguix system init=E2=80=9D > pass. > > This is on an x86_64 laptop where =E2=80=9Clegacy=E2=80=9D BIOS booting i= s enabled. To complement from what we=E2=80=99ve discussed on IRC: =E2=80=A2 It=E2=80=99s a UEFI laptop with legacy-BIOS enabled, but UEFI s= till. =E2=80=A2 AIUI the installation image boots in UEFI mode on UEFI machines= , and then =E2=80=98grub-install=E2=80=99 (probably via =E2=80=98efivar=E2=80= =99 or /sys or similar) detects that it=E2=80=99s UEFI, decides that the target is thus =E2=80=9Cx86_64-efi=E2=80=9D, and fails because it lacks the EFI files. I can think of two possible workarounds: 1. Default to =E2=80=98grub-hybrid=E2=80=99. But in that case, you=E2=80= =99d have done a UEFI install unconditionally. 2. For =E2=80=98grub-bootloader=E2=80=99 (not EFI), always pass =E2=80=98= --target=3Di386-pc=E2=80=99. Danny, Marius, thoughts? :-) Ludo=E2=80=99.