From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#30311: efi-less grub install fails Date: Thu, 01 Feb 2018 13:40:22 +0100 Message-ID: <87inbgq3wp.fsf@fastmail.com> References: <20180201003414.4a535dec@scratchpost.org> 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]:36461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehEAt-00089X-JS for bug-guix@gnu.org; Thu, 01 Feb 2018 07:41:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehEAo-00069O-KI for bug-guix@gnu.org; Thu, 01 Feb 2018 07:41:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:43965) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehEAo-000696-EF for bug-guix@gnu.org; Thu, 01 Feb 2018 07:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ehEAo-0002ii-3R for bug-guix@gnu.org; Thu, 01 Feb 2018 07:41:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20180201003414.4a535dec@scratchpost.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic , Ricardo Wurmus Cc: 30311@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Danny Milosavljevic writes: > Hi Ricardo, > > On Wed, 31 Jan 2018 19:55:58 +0100 > Ricardo Wurmus wrote: > >> =E2=80=9Cguix system init=E2=80=9D fails with a configuration file that = specifies >> grub-bootloader (not grub-efi-bootloader). >>=20 >> =E2=80=9Cgrub-install=E2=80=9D reports an error about =E2=80=9Clib/grub/= x86_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. >>=20 >> 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. > > Hmm, I wonder what happened here. > > We've been very careful to keep grub and grub-efi separate. > > The entire directory lib/grub/x86_64-efi shouldn't be available in the > "grub" package output - and I checked on master, it isn't. Good. > > So that leaves automatic target selection as the culprit. > > And indeed, there's a call to grub_install_get_default_x86_platform > in util/grub-install.c . And that checks for availability of > /sys/firmware/efi and if it exists, defaults to EFI. > > I think it's a bug in grub to do that for a grub which doesn't have EFI > platform support. :P > > We could just always pass i386-pc in install-grub for i386, but then > we lose i386-ieee1275 (which I have never heard anyone using so maybe > not so bad). I agree, passing --target seems like the best workaround for this GRUB bug. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlpzCrYACgkQoqBt8qM6 VPq+8gf/Y1ibK7FQhUDxpyA9k86wEW0DQi/y7S2oe6KbqQutUWi0gNtsOGGzbv5C qydX7PAEHKkZLAWNEKBRB2ykzzN1RbmgdCZbopEam7GFPrt/+PTr0cNB8slEv9V2 63n4BZqPjPupYYSyPaZ9hksBHINBccqX3JwwtTV+WnnD9v7W5hgqPX7xnEcFE0ZK f/7ISzRfRh1pPD6dF0mxMBH5XULruFK/F2i6C2lIDKubbf9lrYgvx00zEoZtxNrS 1I3uoIYEPcUVY2YAnO/TPQzHHkT5OACfCWYkK+/1gs5pBBDov4UncMBab3QamPQ/ 0/T1JxgenCK8hWBpyW0bLo/jcU1chA== =ULOe -----END PGP SIGNATURE----- --=-=-=--