GNU bug report logs

#30311 efi-less grub install fails

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #8 received at 30311@debbugs.gnu.org (full text, mbox, reply):

Received: (at 30311) by debbugs.gnu.org; 31 Jan 2018 23:34:22 +0000
From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 31 18:34:22 2018
Received: from localhost ([127.0.0.1]:51661 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1eh1tW-0006rA-Ir
	for submit@debbugs.gnu.org; Wed, 31 Jan 2018 18:34:22 -0500
Received: from dd26836.kasserver.com ([85.13.145.193]:34958)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@scratchpost.org>) id 1eh1tU-0006r1-Pp
 for 30311@debbugs.gnu.org; Wed, 31 Jan 2018 18:34:21 -0500
Received: from localhost (77.118.175.51.wireless.dyn.drei.com [77.118.175.51])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 704643360419;
 Thu,  1 Feb 2018 00:34:19 +0100 (CET)
Date: Thu, 1 Feb 2018 00:34:14 +0100
From: Danny Milosavljevic <dannym@scratchpost.org>
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Subject: Re: bug#30311: efi-less grub install fails
Message-ID: <20180201003414.4a535dec@scratchpost.org>
In-Reply-To: <idjmv0t503l.fsf@bimsb-sys02.mdc-berlin.net>
References: <idjmv0t503l.fsf@bimsb-sys02.mdc-berlin.net>
X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 30311
Cc: 30311@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -0.7 (/)
Hi Ricardo,

On Wed, 31 Jan 2018 19:55:58 +0100
Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> wrote:

> “guix system init” fails with a configuration file that specifies
> grub-bootloader (not grub-efi-bootloader).
> 
> “grub-install” reports an error about “lib/grub/x86_64-efi/modinfo.sh”
> not being available.  It suggests passing “--target” or “--device”.
> 
> Our invocation of grub-install does not include a “--target” argument.
> Only after I edited it to pass “--target=i386-pc” did “guix system init”
> 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).

Please report a bug with grub...




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Dec 22 11:50:20 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.