GNU bug report logs

#30311 efi-less grub install fails

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

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

Received: (at 30311) by debbugs.gnu.org; 1 Feb 2018 12:40:27 +0000
From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 01 07:40:27 2018
Received: from localhost ([127.0.0.1]:51862 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1ehEAF-0002hZ-A4
	for submit@debbugs.gnu.org; Thu, 01 Feb 2018 07:40:27 -0500
Received: from out3-smtp.messagingengine.com ([66.111.4.27]:37663)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@fastmail.com>) id 1ehEAC-0002hR-Vq
 for 30311@debbugs.gnu.org; Thu, 01 Feb 2018 07:40:25 -0500
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.nyi.internal (Postfix) with ESMTP id 333C620E35;
 Thu,  1 Feb 2018 07:40:24 -0500 (EST)
Received: from frontend1 ([10.202.2.160])
 by compute5.internal (MEProxy); Thu, 01 Feb 2018 07:40:24 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
 cc:content-type:date:from:in-reply-to:message-id:mime-version
 :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm2; bh=1Nah4JzpgswghSI5HysNmlwgNQjLXPsdndsgStLNeBg=; b=a9S9+lEQ
 tvYmyYA+3u+X1vz52uzE4euQN6+A7xGElIGSlq2Tw5sgiuK0sylBJmxdEDfrPDcP
 YnZVLjSqM6sQAs2HR08QyQHhk79hse/2/3WzSAZubrhWz6aV7lFRJB2y1WAv2q4g
 7CCXLu4aAuDp6rwC/CYQ9ZuHWSyTem14MYHUpX1TGWzigAWObnSPCrfwMHWM2LwO
 mfJ3n9I32iN6+9ng7rLnbUf6td/MGDyhRtMhWdI0dNWCOuHOJhKPPMDtaqpo5RPB
 u6DSaX43mbdkwA0QYjKGOds1JVKVyKnmJS7GgDcUxjeC/r7IVNVAN7DSeO6V4YXl
 HnOkqXfhTw6XJQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-sender
 :x-me-sender:x-sasl-enc; s=fm1; bh=1Nah4JzpgswghSI5HysNmlwgNQjLX
 PsdndsgStLNeBg=; b=W/u3hdaDWLhjqwHTArl5aqUgiWKkUkFh9YMVH9bqpEW8I
 9DHwNwANcalZpjn1REKmyWEJ64/fp9PmVcYYJFVh7N1GajffJ30B+UtF9VphvZcH
 0WqUgbhnZNJ1ca08K6clXBBvKNWp2+YmQ5/aAzR+hXRVufniBvfHgz3Docc/QLgP
 MYXcpPCuzzw4OBQMuWng5MXs1FZS09F5qhK+WnfdyXZ1szGLaVoWQw/f4cL4/CFD
 RrWssvO55iXwn9S1it/Jd0h+UMJl5AKXQ67u2WsNN5lH0rDIzDQ46j1v00w6K7c0
 Ayi68O+1sGExICVjzECCuYgl+4RN4N/Enkyzk8awA==
X-ME-Sender: <xms:uApzWlFJ2VEoQrvruGG9QiJie4RIDPd69F5yD_IykT9Ti5ie3afC9w>
Received: from localhost (cm-84.214.173.174.getinternet.no [84.214.173.174])
 by mail.messagingengine.com (Postfix) with ESMTPA id AEE247E570;
 Thu,  1 Feb 2018 07:40:23 -0500 (EST)
From: Marius Bakke <mbakke@fastmail.com>
To: Danny Milosavljevic <dannym@scratchpost.org>,
 Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Subject: Re: bug#30311: efi-less grub install fails
In-Reply-To: <20180201003414.4a535dec@scratchpost.org>
References: <idjmv0t503l.fsf@bimsb-sys02.mdc-berlin.net>
 <20180201003414.4a535dec@scratchpost.org>
User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1
 (x86_64-pc-linux-gnu)
Date: Thu, 01 Feb 2018 13:40:22 +0100
Message-ID: <87inbgq3wp.fsf@fastmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
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 (/)
[Message part 1 (text/plain, inline)]
Danny Milosavljevic <dannym@scratchpost.org> writes:

> 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).

I agree, passing --target seems like the best workaround for this GRUB
bug.
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Dec 22 11:09:37 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.