GNU logs - #30311, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Ricardo Wurmus <ricardo.wurmus@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 31 Jan 2018 18:57:02 +0000
Resent-Message-ID: <handler.30311.B.151742499612000 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 30311 <at> debbugs.gnu.org
X-Debbugs-Original-To: <bug-guix@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.151742499612000
          (code B ref -1); Wed, 31 Jan 2018 18:57:02 +0000
Received: (at submit) by debbugs.gnu.org; 31 Jan 2018 18:56:36 +0000
Received: from localhost ([127.0.0.1]:51501 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1egxYi-00037U-5l
	for submit <at> debbugs.gnu.org; Wed, 31 Jan 2018 13:56:36 -0500
Received: from eggs.gnu.org ([208.118.235.92]:47016)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1egxYg-00037H-8E
 for submit <at> debbugs.gnu.org; Wed, 31 Jan 2018 13:56:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1egxYa-0001V7-B6
 for submit <at> debbugs.gnu.org; Wed, 31 Jan 2018 13:56:29 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44508)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <Ricardo.Wurmus@HIDDEN>)
 id 1egxYa-0001Uz-88
 for submit <at> debbugs.gnu.org; Wed, 31 Jan 2018 13:56:28 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37986)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1egxYZ-0001Kx-0k
 for bug-guix@HIDDEN; Wed, 31 Jan 2018 13:56:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1egxYV-0001RG-SQ
 for bug-guix@HIDDEN; Wed, 31 Jan 2018 13:56:27 -0500
Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:49578)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <Ricardo.Wurmus@HIDDEN>)
 id 1egxYV-0001LJ-Ib
 for bug-guix@HIDDEN; Wed, 31 Jan 2018 13:56:23 -0500
Received: from localhost (localhost [127.0.0.1])
 by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTP id BA6FC7029DD
 for <bug-guix@HIDDEN>; Wed, 31 Jan 2018 19:56:14 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h=
 content-transfer-encoding:content-type:content-type:mime-version
 :message-id:date:date:subject:subject:from:from:user-agent
 :received:received:received:received; s=mdc; t=1517424969; x=
 1519239370; bh=jKawxyzePzicd60Gmv8FKa3HaafCfQMLfksnD2ihyo4=; b=g
 KNQKzBjei/K0b8+MjxCb1N+GG4kuy1+QJPgu2jbI1ltv64oqv/Ge8M6ma6NGw4/8
 0N6QHtXsk2xjQ1YncsVQFSAoR1g0xWFBUldGVJ1LYobtyxsUgKtkJzDt9VPXYmGD
 HqU05gFYJEB5KQKun8pbqQZl/r3O6dS9evumFNIVf4=
X-Virus-Scanned: amavisd-new at mdc-berlin.de
Received: from pegasus.bbbm.mdc-berlin.de ([127.0.0.1])
 by localhost (pegasus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id uJZ2mKQD_nlo for <bug-guix@HIDDEN>;
 Wed, 31 Jan 2018 19:56:09 +0100 (CET)
Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTPS
 for <bug-guix@HIDDEN>; Wed, 31 Jan 2018 19:56:09 +0100 (CET)
Received: from SW-IT-P-CAS2.mdc-berlin.net (141.80.113.54) by
 HTCATWO.mdc-berlin.net (141.80.180.190) with Microsoft SMTP Server (TLS) id
 14.3.361.1; Wed, 31 Jan 2018 19:56:09 +0100
Received: from localhost (141.80.113.51) by SW-IT-P-CAS2.mdc-berlin.net
 (141.80.113.54) with Microsoft SMTP Server id 14.3.361.1; Wed, 31 Jan 2018
 19:56:08 +0100
User-agent: mu4e 0.9.18; emacs 25.3.1
From: Ricardo Wurmus <ricardo.wurmus@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Wed, 31 Jan 2018 19:55:58 +0100
Message-ID: <idjmv0t503l.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
X-Originating-IP: [141.80.113.51]
X-TM-AS-Product-Ver: SMEX-11.0.0.4283-8.200.1013-23634.001
X-TM-AS-Result: No--0.354600-0.000000-31
X-TM-AS-MatchedID: 707788-701674-186035-708712-700752-701753-700532-702931-1
 21224-148004-148133-10018-41000-42000-42003-63
X-TM-AS-User-Approved-Sender: Yes
X-TM-AS-User-Blocked-Sender: No
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

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

--
Ricardo




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Ricardo Wurmus <ricardo.wurmus@HIDDEN>
Subject: bug#30311: Acknowledgement (efi-less grub install fails)
Message-ID: <handler.30311.B.151742499612000.ack <at> debbugs.gnu.org>
References: <idjmv0t503l.fsf@HIDDEN>
X-Gnu-PR-Message: ack 30311
X-Gnu-PR-Package: guix
Reply-To: 30311 <at> debbugs.gnu.org
Date: Wed, 31 Jan 2018 18:57:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 30311 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
30311: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30311
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Danny Milosavljevic <dannym@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 31 Jan 2018 23:35:02 +0000
Resent-Message-ID: <handler.30311.B30311.151744166226364 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ricardo Wurmus <ricardo.wurmus@HIDDEN>
Cc: 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.151744166226364
          (code B ref 30311); Wed, 31 Jan 2018 23:35:02 +0000
Received: (at 30311) by debbugs.gnu.org; 31 Jan 2018 23:34:22 +0000
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 <at> debbugs.gnu.org>)
	id 1eh1tW-0006rA-Ir
	for submit <at> 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@HIDDEN>) id 1eh1tU-0006r1-Pp
 for 30311 <at> 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@HIDDEN>
Message-ID: <20180201003414.4a535dec@HIDDEN>
In-Reply-To: <idjmv0t503l.fsf@HIDDEN>
References: <idjmv0t503l.fsf@HIDDEN>
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-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Hi Ricardo,

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

> =E2=80=9Cguix system init=E2=80=9D fails with a configuration file that s=
pecifies
> grub-bootloader (not grub-efi-bootloader).
>=20
> =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.
>=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).

Please report a bug with grub...




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: ludo@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 31 Jan 2018 23:56:01 +0000
Resent-Message-ID: <handler.30311.B30311.151744293328233 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ricardo Wurmus <ricardo.wurmus@HIDDEN>
Cc: Danny Milosavljevic <dannym@HIDDEN>, Marius Bakke <mbakke@HIDDEN>, 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.151744293328233
          (code B ref 30311); Wed, 31 Jan 2018 23:56:01 +0000
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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eh2E1-0007LJ-KJ
	for submit <at> 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 <ludo@HIDDEN>) id 1eh2E0-0007LB-1y
 for 30311 <at> 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@HIDDEN (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
References: <idjmv0t503l.fsf@HIDDEN>
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: <idjmv0t503l.fsf@HIDDEN> (Ricardo Wurmus's
 message of "Wed, 31 Jan 2018 19:55:58 +0100")
Message-ID: <87y3kdoa6m.fsf@HIDDEN>
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-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Heya,

Ricardo Wurmus <ricardo.wurmus@HIDDEN> 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.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Marius Bakke <mbakke@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 01 Feb 2018 12:41:02 +0000
Resent-Message-ID: <handler.30311.B30311.151748882710393 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Danny Milosavljevic <dannym@HIDDEN>, Ricardo Wurmus <ricardo.wurmus@HIDDEN>
Cc: 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.151748882710393
          (code B ref 30311); Thu, 01 Feb 2018 12:41:02 +0000
Received: (at 30311) by debbugs.gnu.org; 1 Feb 2018 12:40:27 +0000
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 <at> debbugs.gnu.org>)
	id 1ehEAF-0002hZ-A4
	for submit <at> 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@HIDDEN>) id 1ehEAC-0002hR-Vq
 for 30311 <at> 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@HIDDEN>
In-Reply-To: <20180201003414.4a535dec@HIDDEN>
References: <idjmv0t503l.fsf@HIDDEN>
 <20180201003414.4a535dec@HIDDEN>
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@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Danny Milosavljevic <dannym@HIDDEN> writes:

> Hi Ricardo,
>
> On Wed, 31 Jan 2018 19:55:58 +0100
> Ricardo Wurmus <ricardo.wurmus@HIDDEN> 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-----
--=-=-=--




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 6 Feb 2018 16:05:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 06 11:05:26 2018
Received: from localhost ([127.0.0.1]:60476 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ej5kL-0003Vz-Uz
	for submit <at> debbugs.gnu.org; Tue, 06 Feb 2018 11:05:26 -0500
Received: from hera.aquilenet.fr ([185.233.100.1]:58184)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1ej5kK-0003Vs-PR
 for control <at> debbugs.gnu.org; Tue, 06 Feb 2018 11:05:25 -0500
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 6115B10823
 for <control <at> debbugs.gnu.org>; Tue,  6 Feb 2018 17:05:24 +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 Hnu2ofpwo-pO for <control <at> debbugs.gnu.org>;
 Tue,  6 Feb 2018 17:05:24 +0100 (CET)
Received: from ribbon (unknown [193.50.110.200])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id D7D5B1068E
 for <control <at> debbugs.gnu.org>; Tue,  6 Feb 2018 17:05:23 +0100 (CET)
Date: Tue, 06 Feb 2018 17:05:23 +0100
Message-Id: <87372e5cjg.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
Subject: control message for bug #30311
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

severity 30311 important




Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Ricardo Wurmus <ricardo.wurmus@HIDDEN>
Subject: bug#30311: closed (efi-less grub install fails)
CC: tracker <at> debbugs.gnu.org
Message-ID: <handler.30311.D30311.151895331322159.ackdone <at> debbugs.gnu.org>
References: <87371yy1te.fsf@HIDDEN>
 <idjmv0t503l.fsf@HIDDEN>
X-Gnu-PR-Message: closed 30311
X-Gnu-PR-Package: guix
Date: Sun, 18 Feb 2018 11:29:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1518953342-22204-0"

This is a multi-part message in MIME format...

------------=_1518953342-22204-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

Your message dated Sun, 18 Feb 2018 12:28:13 +0100
with message-id <87371yy1te.fsf@HIDDEN>
and subject line Re: bug#30311: efi-less grub install fails
has caused the debbugs.gnu.org bug report #30311,
regarding efi-less grub install fails
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@HIDDEN)


--=20
30311: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30311
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1518953342-22204-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 31 Jan 2018 18:56:36 +0000
Received: from localhost ([127.0.0.1]:51501 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1egxYi-00037U-5l
	for submit <at> debbugs.gnu.org; Wed, 31 Jan 2018 13:56:36 -0500
Received: from eggs.gnu.org ([208.118.235.92]:47016)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1egxYg-00037H-8E
 for submit <at> debbugs.gnu.org; Wed, 31 Jan 2018 13:56:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1egxYa-0001V7-B6
 for submit <at> debbugs.gnu.org; Wed, 31 Jan 2018 13:56:29 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44508)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <Ricardo.Wurmus@HIDDEN>)
 id 1egxYa-0001Uz-88
 for submit <at> debbugs.gnu.org; Wed, 31 Jan 2018 13:56:28 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37986)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1egxYZ-0001Kx-0k
 for bug-guix@HIDDEN; Wed, 31 Jan 2018 13:56:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1egxYV-0001RG-SQ
 for bug-guix@HIDDEN; Wed, 31 Jan 2018 13:56:27 -0500
Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:49578)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <Ricardo.Wurmus@HIDDEN>)
 id 1egxYV-0001LJ-Ib
 for bug-guix@HIDDEN; Wed, 31 Jan 2018 13:56:23 -0500
Received: from localhost (localhost [127.0.0.1])
 by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTP id BA6FC7029DD
 for <bug-guix@HIDDEN>; Wed, 31 Jan 2018 19:56:14 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h=
 content-transfer-encoding:content-type:content-type:mime-version
 :message-id:date:date:subject:subject:from:from:user-agent
 :received:received:received:received; s=mdc; t=1517424969; x=
 1519239370; bh=jKawxyzePzicd60Gmv8FKa3HaafCfQMLfksnD2ihyo4=; b=g
 KNQKzBjei/K0b8+MjxCb1N+GG4kuy1+QJPgu2jbI1ltv64oqv/Ge8M6ma6NGw4/8
 0N6QHtXsk2xjQ1YncsVQFSAoR1g0xWFBUldGVJ1LYobtyxsUgKtkJzDt9VPXYmGD
 HqU05gFYJEB5KQKun8pbqQZl/r3O6dS9evumFNIVf4=
X-Virus-Scanned: amavisd-new at mdc-berlin.de
Received: from pegasus.bbbm.mdc-berlin.de ([127.0.0.1])
 by localhost (pegasus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id uJZ2mKQD_nlo for <bug-guix@HIDDEN>;
 Wed, 31 Jan 2018 19:56:09 +0100 (CET)
Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTPS
 for <bug-guix@HIDDEN>; Wed, 31 Jan 2018 19:56:09 +0100 (CET)
Received: from SW-IT-P-CAS2.mdc-berlin.net (141.80.113.54) by
 HTCATWO.mdc-berlin.net (141.80.180.190) with Microsoft SMTP Server (TLS) id
 14.3.361.1; Wed, 31 Jan 2018 19:56:09 +0100
Received: from localhost (141.80.113.51) by SW-IT-P-CAS2.mdc-berlin.net
 (141.80.113.54) with Microsoft SMTP Server id 14.3.361.1; Wed, 31 Jan 2018
 19:56:08 +0100
User-agent: mu4e 0.9.18; emacs 25.3.1
From: Ricardo Wurmus <ricardo.wurmus@HIDDEN>
To: <bug-guix@HIDDEN>
Subject: efi-less grub install fails
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Wed, 31 Jan 2018 19:55:58 +0100
Message-ID: <idjmv0t503l.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
X-Originating-IP: [141.80.113.51]
X-TM-AS-Product-Ver: SMEX-11.0.0.4283-8.200.1013-23634.001
X-TM-AS-Result: No--0.354600-0.000000-31
X-TM-AS-MatchedID: 707788-701674-186035-708712-700752-701753-700532-702931-1
 21224-148004-148133-10018-41000-42000-42003-63
X-TM-AS-User-Approved-Sender: Yes
X-TM-AS-User-Blocked-Sender: No
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

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

--
Ricardo



------------=_1518953342-22204-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 30311-done) by debbugs.gnu.org; 18 Feb 2018 11:28:33 +0000
Received: from localhost ([127.0.0.1]:48960 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1enN8z-0005lL-GX
	for submit <at> debbugs.gnu.org; Sun, 18 Feb 2018 06:28:33 -0500
Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:42970)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1enN8x-0005lC-6X
 for 30311-done <at> debbugs.gnu.org; Sun, 18 Feb 2018 06:28:32 -0500
Received: from localhost (localhost [127.0.0.1])
 by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTP id 150CC787ABC;
 Sun, 18 Feb 2018 12:28:30 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h=
 content-transfer-encoding:content-type:content-type:mime-version
 :message-id:date:date:in-reply-to:subject:subject:from:from
 :user-agent:references:received:received:received:received; s=
 mdc; t=1518953304; x=1520767705; bh=8CwqyfyjHRl9IjiHvvepE0guFDk8
 HOhOXMsZS4YaMZo=; b=L264ph4siQHJ+GqnLe3MIii0uxOe+YLQFL5sXXFvHAJc
 WQQPlERsW9e7dzrCW6AbUO1Yir0LzTXfec96DGOxMeDZj+zA3G6VhkO32T41veIj
 uYKCzUtiwfH4AK3gLbyviTxtnqkIqAOcOALdko08XcYMSvqf0p0aVW2/sqZUIj8=
X-Virus-Scanned: amavisd-new at mdc-berlin.de
Received: from pegasus.bbbm.mdc-berlin.de ([127.0.0.1])
 by localhost (pegasus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id rJF0hLDpYQmC; Sun, 18 Feb 2018 12:28:24 +0100 (CET)
Received: from HTCAONE.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTPS;
 Sun, 18 Feb 2018 12:28:24 +0100 (CET)
Received: from SW-IT-P-CAS2.mdc-berlin.net (141.80.113.54) by
 HTCAONE.mdc-berlin.net (141.80.180.120) with Microsoft SMTP Server (TLS) id
 14.3.361.1; Sun, 18 Feb 2018 12:28:24 +0100
Received: from localhost (141.80.113.51) by SW-IT-P-CAS2.mdc-berlin.net
 (141.80.113.54) with Microsoft SMTP Server id 14.3.361.1; Sun, 18 Feb 2018
 12:28:23 +0100
References: <idjmv0t503l.fsf@HIDDEN>
 <20180201003414.4a535dec@HIDDEN> <87inbgq3wp.fsf@HIDDEN>
User-agent: mu4e 1.0-alpha3; emacs 25.3.1
From: Ricardo Wurmus <ricardo.wurmus@HIDDEN>
To: Marius Bakke <mbakke@HIDDEN>
Subject: Re: bug#30311: efi-less grub install fails
In-Reply-To: <87inbgq3wp.fsf@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Sun, 18 Feb 2018 12:28:13 +0100
Message-ID: <87371yy1te.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
X-Originating-IP: [141.80.113.51]
X-TM-AS-Product-Ver: SMEX-11.0.0.4283-8.200.1013-23670.006
X-TM-AS-Result: No--11.097400-0.000000-31
X-TM-AS-MatchedID: 150567-703731-139010-700075-707788-701674-186035-708712-7
 00752-701753-706060-703096-105700-704578-701618-708855-709185-704689-709584
 -700693-702609-707909-701640-701461-705974-702050-701837-700107-148004-1481
 33-20043-42000-42003-63
X-TM-AS-User-Approved-Sender: Yes
X-TM-AS-User-Blocked-Sender: No
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 30311-done
Cc: Danny Milosavljevic <dannym@HIDDEN>, 30311-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


Marius Bakke <mbakke@HIDDEN> writes:

> Danny Milosavljevic <dannym@HIDDEN> writes:
>
>> Hi Ricardo,
>>
>> On Wed, 31 Jan 2018 19:55:58 +0100
>> Ricardo Wurmus <ricardo.wurmus@HIDDEN> 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.

Okay, I’ve added “--target=i386-pc” to the list of arguments.

Thanks for the comments.

-- 
Ricardo


------------=_1518953342-22204-0--


Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Ricardo Wurmus <ricardo.wurmus@HIDDEN>
Subject: bug#30311: closed (Re: bug#30311: efi-less grub install fails)
Message-ID: <handler.30311.D30311.151895331322159.notifdone <at> debbugs.gnu.org>
References: <87371yy1te.fsf@HIDDEN>
 <idjmv0t503l.fsf@HIDDEN>
X-Gnu-PR-Message: they-closed 30311
X-Gnu-PR-Package: guix
Reply-To: 30311 <at> debbugs.gnu.org
Date: Sun, 18 Feb 2018 11:29:04 +0000
Content-Type: multipart/mixed; boundary="----------=_1518953344-22204-1"

This is a multi-part message in MIME format...

------------=_1518953344-22204-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your bug report

#30311: efi-less grub install fails

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 30311 <at> debbugs.gnu.org.

--=20
30311: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30311
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1518953344-22204-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 30311-done) by debbugs.gnu.org; 18 Feb 2018 11:28:33 +0000
Received: from localhost ([127.0.0.1]:48960 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1enN8z-0005lL-GX
	for submit <at> debbugs.gnu.org; Sun, 18 Feb 2018 06:28:33 -0500
Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:42970)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1enN8x-0005lC-6X
 for 30311-done <at> debbugs.gnu.org; Sun, 18 Feb 2018 06:28:32 -0500
Received: from localhost (localhost [127.0.0.1])
 by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTP id 150CC787ABC;
 Sun, 18 Feb 2018 12:28:30 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h=
 content-transfer-encoding:content-type:content-type:mime-version
 :message-id:date:date:in-reply-to:subject:subject:from:from
 :user-agent:references:received:received:received:received; s=
 mdc; t=1518953304; x=1520767705; bh=8CwqyfyjHRl9IjiHvvepE0guFDk8
 HOhOXMsZS4YaMZo=; b=L264ph4siQHJ+GqnLe3MIii0uxOe+YLQFL5sXXFvHAJc
 WQQPlERsW9e7dzrCW6AbUO1Yir0LzTXfec96DGOxMeDZj+zA3G6VhkO32T41veIj
 uYKCzUtiwfH4AK3gLbyviTxtnqkIqAOcOALdko08XcYMSvqf0p0aVW2/sqZUIj8=
X-Virus-Scanned: amavisd-new at mdc-berlin.de
Received: from pegasus.bbbm.mdc-berlin.de ([127.0.0.1])
 by localhost (pegasus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id rJF0hLDpYQmC; Sun, 18 Feb 2018 12:28:24 +0100 (CET)
Received: from HTCAONE.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTPS;
 Sun, 18 Feb 2018 12:28:24 +0100 (CET)
Received: from SW-IT-P-CAS2.mdc-berlin.net (141.80.113.54) by
 HTCAONE.mdc-berlin.net (141.80.180.120) with Microsoft SMTP Server (TLS) id
 14.3.361.1; Sun, 18 Feb 2018 12:28:24 +0100
Received: from localhost (141.80.113.51) by SW-IT-P-CAS2.mdc-berlin.net
 (141.80.113.54) with Microsoft SMTP Server id 14.3.361.1; Sun, 18 Feb 2018
 12:28:23 +0100
References: <idjmv0t503l.fsf@HIDDEN>
 <20180201003414.4a535dec@HIDDEN> <87inbgq3wp.fsf@HIDDEN>
User-agent: mu4e 1.0-alpha3; emacs 25.3.1
From: Ricardo Wurmus <ricardo.wurmus@HIDDEN>
To: Marius Bakke <mbakke@HIDDEN>
Subject: Re: bug#30311: efi-less grub install fails
In-Reply-To: <87inbgq3wp.fsf@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Sun, 18 Feb 2018 12:28:13 +0100
Message-ID: <87371yy1te.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
X-Originating-IP: [141.80.113.51]
X-TM-AS-Product-Ver: SMEX-11.0.0.4283-8.200.1013-23670.006
X-TM-AS-Result: No--11.097400-0.000000-31
X-TM-AS-MatchedID: 150567-703731-139010-700075-707788-701674-186035-708712-7
 00752-701753-706060-703096-105700-704578-701618-708855-709185-704689-709584
 -700693-702609-707909-701640-701461-705974-702050-701837-700107-148004-1481
 33-20043-42000-42003-63
X-TM-AS-User-Approved-Sender: Yes
X-TM-AS-User-Blocked-Sender: No
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 30311-done
Cc: Danny Milosavljevic <dannym@HIDDEN>, 30311-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


Marius Bakke <mbakke@HIDDEN> writes:

> Danny Milosavljevic <dannym@HIDDEN> writes:
>
>> Hi Ricardo,
>>
>> On Wed, 31 Jan 2018 19:55:58 +0100
>> Ricardo Wurmus <ricardo.wurmus@HIDDEN> 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.

Okay, I’ve added “--target=i386-pc” to the list of arguments.

Thanks for the comments.

-- 
Ricardo


------------=_1518953344-22204-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 31 Jan 2018 18:56:36 +0000
Received: from localhost ([127.0.0.1]:51501 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1egxYi-00037U-5l
	for submit <at> debbugs.gnu.org; Wed, 31 Jan 2018 13:56:36 -0500
Received: from eggs.gnu.org ([208.118.235.92]:47016)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1egxYg-00037H-8E
 for submit <at> debbugs.gnu.org; Wed, 31 Jan 2018 13:56:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1egxYa-0001V7-B6
 for submit <at> debbugs.gnu.org; Wed, 31 Jan 2018 13:56:29 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44508)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <Ricardo.Wurmus@HIDDEN>)
 id 1egxYa-0001Uz-88
 for submit <at> debbugs.gnu.org; Wed, 31 Jan 2018 13:56:28 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37986)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1egxYZ-0001Kx-0k
 for bug-guix@HIDDEN; Wed, 31 Jan 2018 13:56:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Ricardo.Wurmus@HIDDEN>) id 1egxYV-0001RG-SQ
 for bug-guix@HIDDEN; Wed, 31 Jan 2018 13:56:27 -0500
Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:49578)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <Ricardo.Wurmus@HIDDEN>)
 id 1egxYV-0001LJ-Ib
 for bug-guix@HIDDEN; Wed, 31 Jan 2018 13:56:23 -0500
Received: from localhost (localhost [127.0.0.1])
 by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTP id BA6FC7029DD
 for <bug-guix@HIDDEN>; Wed, 31 Jan 2018 19:56:14 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h=
 content-transfer-encoding:content-type:content-type:mime-version
 :message-id:date:date:subject:subject:from:from:user-agent
 :received:received:received:received; s=mdc; t=1517424969; x=
 1519239370; bh=jKawxyzePzicd60Gmv8FKa3HaafCfQMLfksnD2ihyo4=; b=g
 KNQKzBjei/K0b8+MjxCb1N+GG4kuy1+QJPgu2jbI1ltv64oqv/Ge8M6ma6NGw4/8
 0N6QHtXsk2xjQ1YncsVQFSAoR1g0xWFBUldGVJ1LYobtyxsUgKtkJzDt9VPXYmGD
 HqU05gFYJEB5KQKun8pbqQZl/r3O6dS9evumFNIVf4=
X-Virus-Scanned: amavisd-new at mdc-berlin.de
Received: from pegasus.bbbm.mdc-berlin.de ([127.0.0.1])
 by localhost (pegasus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id uJZ2mKQD_nlo for <bug-guix@HIDDEN>;
 Wed, 31 Jan 2018 19:56:09 +0100 (CET)
Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTPS
 for <bug-guix@HIDDEN>; Wed, 31 Jan 2018 19:56:09 +0100 (CET)
Received: from SW-IT-P-CAS2.mdc-berlin.net (141.80.113.54) by
 HTCATWO.mdc-berlin.net (141.80.180.190) with Microsoft SMTP Server (TLS) id
 14.3.361.1; Wed, 31 Jan 2018 19:56:09 +0100
Received: from localhost (141.80.113.51) by SW-IT-P-CAS2.mdc-berlin.net
 (141.80.113.54) with Microsoft SMTP Server id 14.3.361.1; Wed, 31 Jan 2018
 19:56:08 +0100
User-agent: mu4e 0.9.18; emacs 25.3.1
From: Ricardo Wurmus <ricardo.wurmus@HIDDEN>
To: <bug-guix@HIDDEN>
Subject: efi-less grub install fails
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Wed, 31 Jan 2018 19:55:58 +0100
Message-ID: <idjmv0t503l.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
X-Originating-IP: [141.80.113.51]
X-TM-AS-Product-Ver: SMEX-11.0.0.4283-8.200.1013-23634.001
X-TM-AS-Result: No--0.354600-0.000000-31
X-TM-AS-MatchedID: 707788-701674-186035-708712-700752-701753-700532-702931-1
 21224-148004-148133-10018-41000-42000-42003-63
X-TM-AS-User-Approved-Sender: Yes
X-TM-AS-User-Blocked-Sender: No
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

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

--
Ricardo



------------=_1518953344-22204-1--


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
References: <idjmv0t503l.fsf@HIDDEN>
In-Reply-To: <idjmv0t503l.fsf@HIDDEN>
Resent-From: Mark H Weaver <mhw@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 18 Feb 2018 16:22:02 +0000
Resent-Message-ID: <handler.30311.B30311.151897088016226 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 30311 <at> debbugs.gnu.org
Cc: Danny Milosavljevic <dannym@HIDDEN>, Ricardo Wurmus <ricardo.wurmus@HIDDEN>
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.151897088016226
          (code B ref 30311); Sun, 18 Feb 2018 16:22:02 +0000
Received: (at 30311) by debbugs.gnu.org; 18 Feb 2018 16:21:20 +0000
Received: from localhost ([127.0.0.1]:49937 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1enRiJ-0004DZ-PU
	for submit <at> debbugs.gnu.org; Sun, 18 Feb 2018 11:21:19 -0500
Received: from world.peace.net ([50.252.239.5]:49554)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mhw@HIDDEN>)
 id 1enRiI-0004DI-7q; Sun, 18 Feb 2018 11:21:18 -0500
Received: from pool-72-93-27-42.bstnma.east.verizon.net ([72.93.27.42]
 helo=yeeloong)
 by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <mhw@HIDDEN>)
 id 1enRiB-0003eS-JR; Sun, 18 Feb 2018 11:21:11 -0500
From: Mark H Weaver <mhw@HIDDEN>
Date: Sun, 18 Feb 2018 11:20:40 -0500
Message-ID: <87tvuel15z.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

reopen 30311
thanks

Hi Ricardo,

Ricardo Wurmus <ricardo.wurmus@HIDDEN> writes:
> Okay, I=E2=80=99ve added =E2=80=9C--target=3Di386-pc=E2=80=9D to the list=
 of arguments.

This change breaks my mips64el-linux GuixSD system, which is supported
by GRUB, but where "--target=3Di386-pc" is obviously not appropriate.  On
my system I need a different 'target' setting.

It would be great if we could find another solution to this issue.
GRUB's automatic target selection seems to work on most systems, since
we've been relying on it for a long time without anyone reporting
problems until this bug report.

In the rare cases where GRUB fails to detect the target, perhaps we
could provide a way to specify an explicit GRUB 'target' in the grub
configuration?  What do you think?

      Mark




Message received at fakecontrol@fakecontrolmessage:


Received: (at fakecontrol) by fakecontrolmessage;
To: internal_control <at> debbugs.gnu.org
From: Debbugs Internal Request <help-debbugs@HIDDEN>
Subject: Internal Control
Message-Id: Did not alter fixed versions and reopened.
Date: Sun, 18 Feb 2018 16:22:02 +0000
User-Agent: Fakemail v42.6.9

# This is a fake control message.
#
# The action:
# Did not alter fixed versions and reopened.
thanks
# This fakemail brought to you by your local debbugs
# administrator


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Danny Milosavljevic <dannym@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 18 Feb 2018 16:50:02 +0000
Resent-Message-ID: <handler.30311.B30311.151897257826390 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Mark H Weaver <mhw@HIDDEN>
Cc: Ricardo Wurmus <ricardo.wurmus@HIDDEN>, 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.151897257826390
          (code B ref 30311); Sun, 18 Feb 2018 16:50:02 +0000
Received: (at 30311) by debbugs.gnu.org; 18 Feb 2018 16:49:38 +0000
Received: from localhost ([127.0.0.1]:49993 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1enS9h-0006ra-RC
	for submit <at> debbugs.gnu.org; Sun, 18 Feb 2018 11:49:38 -0500
Received: from dd26836.kasserver.com ([85.13.145.193]:33608)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1enS9f-0006rR-N3
 for 30311 <at> debbugs.gnu.org; Sun, 18 Feb 2018 11:49:36 -0500
Received: from localhost (178.113.229.194.wireless.dyn.drei.com
 [178.113.229.194])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 1142033607C2;
 Sun, 18 Feb 2018 17:49:33 +0100 (CET)
Date: Sun, 18 Feb 2018 17:49:22 +0100
From: Danny Milosavljevic <dannym@HIDDEN>
Message-ID: <20180218174922.47f656a7@HIDDEN>
In-Reply-To: <87tvuel15z.fsf@HIDDEN>
References: <87tvuel15z.fsf@HIDDEN>
X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="MP_/qRq7Jxya59VD8z+37o+T5hJ"
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--MP_/qRq7Jxya59VD8z+37o+T5hJ
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Mark,

> This change breaks my mips64el-linux GuixSD system, which is supported
> by GRUB, but where "--target=i386-pc" is obviously not appropriate.  On
> my system I need a different 'target' setting.

A pretty safe workaround is to substitute /sys/firmware/efi by /sys/firmware/non-efi
in ./grub-core/osdep/linux/platform.c for non-efi grub.

See attachment...

> In the rare cases where GRUB fails to detect the target, perhaps we
> could provide a way to specify an explicit GRUB 'target' in the grub
> configuration?

I still think that upstream should fix this bug.  It's silly that we have to
massage grub to not select a target which grub wasn't compiled for - we
patch/configure one part of grub so another part of grub isn't confused.

It's the same package :P

Bootloader configuration is complicated enough already.  In this case I'd rather
grub did the right thing automatically.

--MP_/qRq7Jxya59VD8z+37o+T5hJ
Content-Type: text/x-patch
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename=0001-gnu-grub-Make-sure-that-non-EFI-grub-doesn-t-try-to-.patch

From 263b1dc0de9643094bc41f4be47b4b2317e95d7c Mon Sep 17 00:00:00 2001
From: Danny Milosavljevic <dannym@HIDDEN>
Date: Sun, 18 Feb 2018 17:30:48 +0100
Subject: [FIXME] gnu: grub: Make sure that non-EFI grub doesn't try to use
 EFI.
Tags: patch

* gnu/packages/bootloader.scm (grub)[arguments]<:phases>
[patch-/sys/firmware/efi-out]: New phase.
(grub-efi)[arguments]<:phases>[patch-/sys/firmware/efi-out]: Delete phase.

Fixes <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30311>.
---
 gnu/packages/bootloaders.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 59eb22f24..c09829e17 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -103,6 +103,11 @@
                      (copy-file (assoc-ref inputs "unifont") "unifont.bdf.gz")
                      (system* "gunzip" "unifont.bdf.gz")
                      #t))
+                  (add-after 'unpack 'patch-/sys/firmware/efi-out
+                   (lambda _
+                     (substitute* "grub-core/osdep/linux/platform.c"
+                      (("/sys/firmware/efi") "/sys/firmware/non-efi"))
+                     #t))
                   (add-before 'check 'disable-flaky-test
                     (lambda _
                       ;; This test is unreliable. For more information, see:
@@ -177,6 +182,7 @@ menu to select one of the installed operating systems.")
             `(cons "--with-platform=efi" ,flags))
            ((#:phases phases)
             `(modify-phases ,phases
+               (delete 'patch-/sys/firmware/efi-out)
                (add-after 'patch-stuff 'use-absolute-efibootmgr-path
                  (lambda* (#:key inputs #:allow-other-keys)
                    (substitute* "grub-core/osdep/unix/platform.c"

--MP_/qRq7Jxya59VD8z+37o+T5hJ--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Marius Bakke <mbakke@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 20 Feb 2018 03:23:01 +0000
Resent-Message-ID: <handler.30311.B30311.151909692326629 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Mark H Weaver <mhw@HIDDEN>, 30311 <at> debbugs.gnu.org
Cc: Ricardo Wurmus <ricardo.wurmus@HIDDEN>
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.151909692326629
          (code B ref 30311); Tue, 20 Feb 2018 03:23:01 +0000
Received: (at 30311) by debbugs.gnu.org; 20 Feb 2018 03:22:03 +0000
Received: from localhost ([127.0.0.1]:51965 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1enyVG-0006vQ-Jm
	for submit <at> debbugs.gnu.org; Mon, 19 Feb 2018 22:22:02 -0500
Received: from out1-smtp.messagingengine.com ([66.111.4.25]:37007)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1enyVE-0006v1-3a
 for 30311 <at> debbugs.gnu.org; Mon, 19 Feb 2018 22:22:00 -0500
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.nyi.internal (Postfix) with ESMTP id 8AC5120FAC;
 Mon, 19 Feb 2018 22:21:59 -0500 (EST)
Received: from frontend1 ([10.202.2.160])
 by compute5.internal (MEProxy); Mon, 19 Feb 2018 22:21:59 -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=rt5ZSrM1dTFgcgIdourNCcmPZxM/+zzSsYhgowvmD3o=; b=MSYgfuM6
 B8cY4k6SKgfWe2dGPGdNJi4N1L8O8Lo5GiC3oiD9vAl0Wyt7LGWwTrqSkQ2vfQR1
 NAtcQdWBoDtw2rZCOHy6M1345Y/YKPJg6fd9GwbiEgxEV4/BO8Nk3mJnuqU+UsDT
 vMMbol3v1Lj8vGVkY0eJhAsWwdNfN0K/v/Tu5oWPF0uWMYgJU38omJ9aG4Nh6CXL
 R93ITBVsC2Q4cs3mwGj66JyQ5YLniYjk5Tu0yf4qI1X71Vborm5luBQPycx2sz++
 KYnJ+Q7Fr+qXjh7iqquMjiZgausRs3qC9r6lemVu+Fe/ijbyo69I6sxTXJWBuU+/
 lBrqpyccv/G0Vw==
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=fm2; bh=rt5ZSrM1dTFgcgIdourNCcmPZxM/+
 zzSsYhgowvmD3o=; b=UI2LC3fGLt3RwXnPjLFTOMSaeDOEOysLX0/43zgsENkxH
 uTaha8G7fu+boqCtsf8eaNZLTAValm4nNUHL40Rc0MvHmcorqAZ/yiqHhJYfrvnB
 eZ/1F6W6BSDBCIkoW9/3y6jwDWorS84QGZ4GE8VZCP0biolrJ83BQEP1rPuAqinH
 RXuKZZ6bYZS6ROFi9+wCRttzblnw/wSEpRvVm4f4qsTj6brDwZN1DUDqv72T2+EP
 GA3I29EAivQ3T4I9wIvx8F+FazMoF9ES3XIcHgr30hqX2dOB2PQCXM47LMliUY6f
 LH9XbSmJOmG03oPgDsSgHd/uj6kEwsB0Ly4tIVfNA==
X-ME-Sender: <xms:V5SLWrH50gZihqJG8fJ8TTbYhzkUDTKE1lVgT4qZz_2xphH5qerRSQ>
Received: from localhost (cm-84.211.227.176.getinternet.no [84.211.227.176])
 by mail.messagingengine.com (Postfix) with ESMTPA id 158F77E1A4;
 Mon, 19 Feb 2018 22:21:58 -0500 (EST)
From: Marius Bakke <mbakke@HIDDEN>
In-Reply-To: <87tvuel15z.fsf@HIDDEN>
References: <idjmv0t503l.fsf@HIDDEN>
 <87tvuel15z.fsf@HIDDEN>
User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1
 (x86_64-pc-linux-gnu)
Date: Tue, 20 Feb 2018 04:21:57 +0100
Message-ID: <878tbocpm2.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="==-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Mark H Weaver <mhw@HIDDEN> writes:

> Hi Ricardo,
>
> Ricardo Wurmus <ricardo.wurmus@HIDDEN> writes:
>> Okay, I=E2=80=99ve added =E2=80=9C--target=3Di386-pc=E2=80=9D to the lis=
t of arguments.
>
> This change breaks my mips64el-linux GuixSD system, which is supported
> by GRUB, but where "--target=3Di386-pc" is obviously not appropriate.  On
> my system I need a different 'target' setting.

Maybe we can make it conditional on EFI for now.  Ricardo, are you able
to test the attached patch?  I suspect we might get problems on POWER
and some ARM systems down the road, but it should at least fix this
immediate issue.

Note: I haven't tested this patch myself.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-gnu-Pass-target-to-EFI-less-GRUB-only-when-EFI-varia.patch
Content-Transfer-Encoding: quoted-printable

From=20ce5d6089aff0cf6c31260ac2bbe0aeb2803eb8a0 Mon Sep 17 00:00:00 2001
From: Marius Bakke <mbakke@HIDDEN>
Date: Tue, 20 Feb 2018 04:02:23 +0100
Subject: [PATCH] gnu: Pass "--target" to EFI-less GRUB only when EFI variab=
les
 are present.

Fixes <https://bugs.gnu.org/30311>.

* gnu/bootloader/grub.scm (install-grub): Make "--target" argument
conditional on the presence of "/sys/firmware/efi".
=2D--
 gnu/bootloader/grub.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm
index 3b01125c7..2b8458161 100644
=2D-- a/gnu/bootloader/grub.scm
+++ b/gnu/bootloader/grub.scm
@@ -386,8 +386,13 @@ submenu \"GNU system, old configurations...\" {~%")
         ;; root partition.
         (setenv "GRUB_ENABLE_CRYPTODISK" "y")
=20
=2D        (unless (zero? (system* grub "--no-floppy" "--target=3Di386-pc"
+        (unless (zero? (system* grub "--no-floppy"
                                 "--boot-directory" install-dir
+                                ;; Explicitly pass target if the non-EFI
+                                ;; GRUB is requested on an EFI system.
+                                ;; See <https://bugs.gnu.org/30311>.
+                                ,@(if (file-exists? "/sys/firmware/efi")
+                                      "--target=3Di386-pc")
                                 device))
           (error "failed to install GRUB (BIOS)")))))
=20
=2D-=20
2.16.2


--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqLlFUACgkQoqBt8qM6
VPr4tgf/USpnc+DLJxUw12BYHs8BJhh3hX7I37pcNa+w8+wm1oD7WjjpJ6MGV5vB
pp2J3l21xlvss9gkOraxtzw4UA15D2KvfyB76E2y4e6ez5QA3xr9/d0Ske0guqQd
pu2Kdr0nEP7o5uLIU3Hyzu+G3wNUZQpipMJ8Q3UxaQU6jeFiGlJo8A+Mf9mi7/U4
oKgqFQk3rBFHQNnH53cuMNLkQ/9HTlt7Wk5liUIPWalwdgq75g9eWW6/QGCYRtoK
tkVn8qy4tV6ANXTtCmLWvGG+HmVe312Uf6mB8a9m6x1DSmVK9+O4sn6pflrWgb6X
Fxh5kMabo3I1EJRv08tzkBHZRg63ow==
=ozrx
-----END PGP SIGNATURE-----
--==-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Marius Bakke <mbakke@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 20 Feb 2018 03:47:02 +0000
Resent-Message-ID: <handler.30311.B30311.151909838728881 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Mark H Weaver <mhw@HIDDEN>, 30311 <at> debbugs.gnu.org
Cc: Ricardo Wurmus <ricardo.wurmus@HIDDEN>
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.151909838728881
          (code B ref 30311); Tue, 20 Feb 2018 03:47:02 +0000
Received: (at 30311) by debbugs.gnu.org; 20 Feb 2018 03:46:27 +0000
Received: from localhost ([127.0.0.1]:51977 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1enyst-0007Vk-27
	for submit <at> debbugs.gnu.org; Mon, 19 Feb 2018 22:46:27 -0500
Received: from out1-smtp.messagingengine.com ([66.111.4.25]:43599)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1enysr-0007Vc-6A
 for 30311 <at> debbugs.gnu.org; Mon, 19 Feb 2018 22:46:25 -0500
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.nyi.internal (Postfix) with ESMTP id CD98C20FE3;
 Mon, 19 Feb 2018 22:46:24 -0500 (EST)
Received: from frontend1 ([10.202.2.160])
 by compute5.internal (MEProxy); Mon, 19 Feb 2018 22:46: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=K7H+X35IabDv5g6Tgo1hHbCB4Qvx4Bhw5ODbNn1uG7g=; b=uRFOaElU
 Erth1Ti6v/955za+ATaImWPyFIX0+EbXLEquNzAYmAEAFJGduj/LCUrQxqyCkqyz
 Zeu954eoqfVXvq1pJqwEJqGXbs3Zrm8Z5/Wer9PqYcVqSlX1S3bWi7w3qB7HE97y
 HRpVGySfdNVsuBzDiFHlVjGpxQvnzD4F+aAjmf80gZde4Rj1fhb8JtmoUCYKvQIW
 WGJ7GjrmA575aCLV6s3WqFX7+nctqsinpEYxIfaXA9NiqX2fQFHyVuJ2K6U1RUrg
 DUWpixZpuGdfnQlwt2OBp7giyl1QXOu66BOcsKC2VxDC+XzeQAMJjCHEe80UWyjU
 M4PYY0rRmadUQQ==
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=fm2; bh=K7H+X35IabDv5g6Tgo1hHbCB4Qvx4
 Bhw5ODbNn1uG7g=; b=YRkt8zfCyeDRXaZXVvYx+uuE6/7iPJ5Vhr5ZAdIhuuCEU
 uxZ488DBL4/KmugMVlKBOLqfdIrBj0dNEd0nUTGd2BgXhV0zBym0uxKaM2njfYuW
 MynmweVAFkhy8+is4EupO6gT5N+dejKbALMNhX61dnj7n1o/ZP6oHLxN9m/QpJJQ
 jd6ARgFcMBx/I3hi/XhNH/76T5z12aa0qcHpkisoOrHzYgMwH7Bpymbh80/u64IB
 ym0MtYrr5IVRxrJcuUk9C1tvYWELG+WryDYfPBDUmeIcOjXPeUfacaN7GxpKOfY2
 xDoRngquUp13g9KCFu0BfjISHjKv67A7U0QIBMdtw==
X-ME-Sender: <xms:EJqLWtd-EdTkbnhPSvef83nzU3a19RC3nYG5NwHQvLXCM_fZg9ZMQw>
Received: from localhost (cm-84.211.227.176.getinternet.no [84.211.227.176])
 by mail.messagingengine.com (Postfix) with ESMTPA id 5B24A7E1D0;
 Mon, 19 Feb 2018 22:46:24 -0500 (EST)
From: Marius Bakke <mbakke@HIDDEN>
In-Reply-To: <878tbocpm2.fsf@HIDDEN>
References: <idjmv0t503l.fsf@HIDDEN>
 <87tvuel15z.fsf@HIDDEN> <878tbocpm2.fsf@HIDDEN>
User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1
 (x86_64-pc-linux-gnu)
Date: Tue, 20 Feb 2018 04:46:22 +0100
Message-ID: <87606scohd.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="==-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Marius Bakke <mbakke@HIDDEN> writes:

> Mark H Weaver <mhw@HIDDEN> writes:
>
>> Hi Ricardo,
>>
>> Ricardo Wurmus <ricardo.wurmus@HIDDEN> writes:
>>> Okay, I=E2=80=99ve added =E2=80=9C--target=3Di386-pc=E2=80=9D to the li=
st of arguments.
>>
>> This change breaks my mips64el-linux GuixSD system, which is supported
>> by GRUB, but where "--target=3Di386-pc" is obviously not appropriate.  On
>> my system I need a different 'target' setting.
>
> Maybe we can make it conditional on EFI for now.  Ricardo, are you able
> to test the attached patch?  I suspect we might get problems on POWER
> and some ARM systems down the road, but it should at least fix this
> immediate issue.
>
> Note: I haven't tested this patch myself.

Bah, here is a fixed version that actually works (for the normal case).


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-gnu-Pass-target-to-EFI-less-GRUB-only-when-EFI-varia.patch
Content-Transfer-Encoding: quoted-printable

From=20968ccb27e40ce683ec469f3ac7973827a7e8ddf5 Mon Sep 17 00:00:00 2001
From: Marius Bakke <mbakke@HIDDEN>
Date: Tue, 20 Feb 2018 04:02:23 +0100
Subject: [PATCH] gnu: Pass "--target" to EFI-less GRUB only when EFI variab=
les
 are present.

Fixes <https://bugs.gnu.org/30311>.

* gnu/bootloader/grub.scm (install-grub): Make "--target" argument
conditional on the presence of "/sys/firmware/efi".
=2D--
 gnu/bootloader/grub.scm | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm
index 3b01125c7..17ded5f6d 100644
=2D-- a/gnu/bootloader/grub.scm
+++ b/gnu/bootloader/grub.scm
@@ -386,9 +386,15 @@ submenu \"GNU system, old configurations...\" {~%")
         ;; root partition.
         (setenv "GRUB_ENABLE_CRYPTODISK" "y")
=20
=2D        (unless (zero? (system* grub "--no-floppy" "--target=3Di386-pc"
=2D                                "--boot-directory" install-dir
=2D                                device))
+        (unless (zero? (apply system* grub
+                              (list "--no-floppy"
+                                    "--boot-directory" install-dir
+                                    ;; Explicitly pass target if the non-E=
FI
+                                    ;; GRUB is requested on an EFI system.
+                                    ;; See <https://bugs.gnu.org/30311>.
+                                    #$@(if (file-exists? "/sys/firmware/ef=
i")
+                                           '("--target=3Di386-pc"))
+                                    device)))
           (error "failed to install GRUB (BIOS)")))))
=20
 (define install-grub-efi
=2D-=20
2.16.2


--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqLmg4ACgkQoqBt8qM6
VPorfwf+I0dEVp0xpxREgpi5NA6BGVafqm35tu4lMfRuACa+GiNo/JkY7YsRSrfJ
V0KONQlRHnq2ts9kjnA4EukAvtUvXdixNX0anHbNTRHXvCYIJzbjHM54VIe/Ws3O
lI2YsshsZFcMZnNDOIYXCixLfA+1f315kwqjeOW+NG7PzIhDUeTG/CvOobVVTv+h
n92gk0Ru3c7c4asL0gAKw8LZ3BWKNObOJuTqdFE5Xl186AC5pPakiXqgDpZHTExw
F6OhgHQPX/3O5/qBqqUOrqBgwKQKXVS+qlMDj9l4tLNuMdCrywuFmWp+PVg9AGE/
nCeOjHXuPOQ3bLmcd4LE9cj9G47wfg==
=yG6e
-----END PGP SIGNATURE-----
--==-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Danny Milosavljevic <dannym@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 20 Feb 2018 20:55:02 +0000
Resent-Message-ID: <handler.30311.B30311.15191600718156 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Marius Bakke <mbakke@HIDDEN>
Cc: Mark H Weaver <mhw@HIDDEN>, Ricardo Wurmus <ricardo.wurmus@HIDDEN>, 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.15191600718156
          (code B ref 30311); Tue, 20 Feb 2018 20:55:02 +0000
Received: (at 30311) by debbugs.gnu.org; 20 Feb 2018 20:54:31 +0000
Received: from localhost ([127.0.0.1]:53275 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eoEvm-00027S-7B
	for submit <at> debbugs.gnu.org; Tue, 20 Feb 2018 15:54:31 -0500
Received: from dd26836.kasserver.com ([85.13.145.193]:57292)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1eoEvk-00027L-Ro
 for 30311 <at> debbugs.gnu.org; Tue, 20 Feb 2018 15:54:29 -0500
Received: from localhost (77.118.162.106.wireless.dyn.drei.com
 [77.118.162.106])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 3A5B23360302;
 Tue, 20 Feb 2018 21:54:27 +0100 (CET)
Date: Tue, 20 Feb 2018 21:54:20 +0100
From: Danny Milosavljevic <dannym@HIDDEN>
Message-ID: <20180220215420.072269e6@HIDDEN>
In-Reply-To: <87606scohd.fsf@HIDDEN>
References: <idjmv0t503l.fsf@HIDDEN>
 <87tvuel15z.fsf@HIDDEN> <878tbocpm2.fsf@HIDDEN>
 <87606scohd.fsf@HIDDEN>
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=US-ASCII
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Hi Marius,

hmm, if the conditional doesn't have an alternative case, doesn't that mean that the
value is unspecified?  The list constructor doesn't like that...

You probably meant '()

Other than that, I agree that something like this patch is the low-risk workaround
to do.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Danny Milosavljevic <dannym@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 20 Feb 2018 21:01:02 +0000
Resent-Message-ID: <handler.30311.B30311.15191604188751 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Marius Bakke <mbakke@HIDDEN>
Cc: Mark H Weaver <mhw@HIDDEN>, Ricardo Wurmus <ricardo.wurmus@HIDDEN>, 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.15191604188751
          (code B ref 30311); Tue, 20 Feb 2018 21:01:02 +0000
Received: (at 30311) by debbugs.gnu.org; 20 Feb 2018 21:00:18 +0000
Received: from localhost ([127.0.0.1]:53283 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eoF1O-0002H5-Hs
	for submit <at> debbugs.gnu.org; Tue, 20 Feb 2018 16:00:18 -0500
Received: from dd26836.kasserver.com ([85.13.145.193]:57790)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1eoF1N-0002Gy-2I
 for 30311 <at> debbugs.gnu.org; Tue, 20 Feb 2018 16:00:17 -0500
Received: from localhost (77.118.162.106.wireless.dyn.drei.com
 [77.118.162.106])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 8AF67336024E;
 Tue, 20 Feb 2018 22:00:15 +0100 (CET)
Date: Tue, 20 Feb 2018 22:00:11 +0100
From: Danny Milosavljevic <dannym@HIDDEN>
Message-ID: <20180220220011.737ee227@HIDDEN>
In-Reply-To: <87606scohd.fsf@HIDDEN>
References: <idjmv0t503l.fsf@HIDDEN>
 <87tvuel15z.fsf@HIDDEN> <878tbocpm2.fsf@HIDDEN>
 <87606scohd.fsf@HIDDEN>
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=US-ASCII
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Also, grub-hybrid is supposed to use efi so the workaround shouldn't be used with it...

What do you think about my direct grub patch?




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Ricardo Wurmus <rekado@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 20 Feb 2018 21:42:02 +0000
Resent-Message-ID: <handler.30311.B30311.151916287912627 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Danny Milosavljevic <dannym@HIDDEN>
Cc: Mark H Weaver <mhw@HIDDEN>, Ricardo Wurmus <ricardo.wurmus@HIDDEN>, 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.151916287912627
          (code B ref 30311); Tue, 20 Feb 2018 21:42:02 +0000
Received: (at 30311) by debbugs.gnu.org; 20 Feb 2018 21:41:19 +0000
Received: from localhost ([127.0.0.1]:53341 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eoFf5-0003Ha-9R
	for submit <at> debbugs.gnu.org; Tue, 20 Feb 2018 16:41:19 -0500
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21002)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1eoFf3-0003HT-Nm
 for 30311 <at> debbugs.gnu.org; Tue, 20 Feb 2018 16:41:18 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1519162838; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;
 l=613; bh=Jc739xCtXy14eHXrYlE+3wvbhcdPe0lr1vVMAQJjl0w=;
 b=LDUGX/2h6/hoG6TUXz/3TuJf1UlS5deiN7i3QnVAd1Wj1X3sngJx41zeN9TECtUM
 pUNlQJWMpDq3aWIpOKMgCEAhYe1U81qZBEi1ECuwfLdu9WZ4Ii64aZ5f0J5OfIf6BUg
 /60Q+k50AgOdn2AJAqrKcte5nxZgiQY3bElZYKgE=
Received: from localhost (port-92-200-79-227.dynamic.qsc.de [92.200.79.227])
 by mx.zohomail.com with SMTPS id 1519162838637959.2155728417194;
 Tue, 20 Feb 2018 13:40:38 -0800 (PST)
References: <87tvuel15z.fsf@HIDDEN>
 <20180218174922.47f656a7@HIDDEN>
User-agent: mu4e 1.0; emacs 25.3.1
From: Ricardo Wurmus <rekado@HIDDEN>
In-reply-to: <20180218174922.47f656a7@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Tue, 20 Feb 2018 22:40:35 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Message-ID: <87o9kjqqzw.fsf@HIDDEN>
X-ZohoMailClient: External
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


Hi Danny,

>> This change breaks my mips64el-linux GuixSD system, which is supported
>> by GRUB, but where "--target=3Di386-pc" is obviously not appropriate.  O=
n
>> my system I need a different 'target' setting.
>
> A pretty safe workaround is to substitute /sys/firmware/efi by /sys/firmw=
are/non-efi
> in ./grub-core/osdep/linux/platform.c for non-efi grub.

I don=E2=80=99t understand this patch.  How does it work?

What is the effect of replacing /sys/firmware/efi with
/sys/firmware/non-efi?

--=20
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net






Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Danny Milosavljevic <dannym@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 20 Feb 2018 21:44:01 +0000
Resent-Message-ID: <handler.30311.B30311.151916300512813 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ricardo Wurmus <rekado@HIDDEN>
Cc: Mark H Weaver <mhw@HIDDEN>, Ricardo Wurmus <ricardo.wurmus@HIDDEN>, 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.151916300512813
          (code B ref 30311); Tue, 20 Feb 2018 21:44:01 +0000
Received: (at 30311) by debbugs.gnu.org; 20 Feb 2018 21:43:25 +0000
Received: from localhost ([127.0.0.1]:53345 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eoFh7-0003Kb-N7
	for submit <at> debbugs.gnu.org; Tue, 20 Feb 2018 16:43:25 -0500
Received: from dd26836.kasserver.com ([85.13.145.193]:60922)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1eoFh5-0003KQ-NG
 for 30311 <at> debbugs.gnu.org; Tue, 20 Feb 2018 16:43:24 -0500
Received: from localhost (77.118.162.106.wireless.dyn.drei.com
 [77.118.162.106])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 86797336024E;
 Tue, 20 Feb 2018 22:43:21 +0100 (CET)
Date: Tue, 20 Feb 2018 22:43:17 +0100
From: Danny Milosavljevic <dannym@HIDDEN>
Message-ID: <20180220224317.36920bcb@HIDDEN>
In-Reply-To: <87o9kjqqzw.fsf@HIDDEN>
References: <87tvuel15z.fsf@HIDDEN>
 <20180218174922.47f656a7@HIDDEN>
 <87o9kjqqzw.fsf@HIDDEN>
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-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

> I don=E2=80=99t understand this patch.  How does it work?
>=20
> What is the effect of replacing /sys/firmware/efi with
> /sys/firmware/non-efi?

It won't find EFI since it's looking in the wrong place.

That's what we want :)




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Ricardo Wurmus <rekado@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 20 Feb 2018 21:50:02 +0000
Resent-Message-ID: <handler.30311.B30311.151916339820852 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Danny Milosavljevic <dannym@HIDDEN>
Cc: Mark H Weaver <mhw@HIDDEN>, Ricardo Wurmus <ricardo.wurmus@HIDDEN>, 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.151916339820852
          (code B ref 30311); Tue, 20 Feb 2018 21:50:02 +0000
Received: (at 30311) by debbugs.gnu.org; 20 Feb 2018 21:49:58 +0000
Received: from localhost ([127.0.0.1]:53349 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eoFnS-0005QG-BM
	for submit <at> debbugs.gnu.org; Tue, 20 Feb 2018 16:49:58 -0500
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21024)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1eoFnQ-0005Q8-Od
 for 30311 <at> debbugs.gnu.org; Tue, 20 Feb 2018 16:49:57 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1519163362; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;
 l=895; bh=46dkPPP2wqMvE+UIFHtIXU4dh2ugoPtJyD2omdG+1Rg=;
 b=EztMv4bCmSbZCdkvJ8dUr498T1hc6EkfKAKgFSecOV8DbODkEk25DrQCDiNhsVPN
 97c9iZ3VcSD1jlmJ6K2KN1F1J6KFjYNotnTsaGCowgqxieq3/NbuowwvOozN+pAyjvD
 i/P7gZmJWhWkAdBh4GApGA4aIqe9JjNIgLmFLS38=
Received: from localhost (port-92-200-79-227.dynamic.qsc.de [92.200.79.227])
 by mx.zohomail.com with SMTPS id 1519163362354573.4924842466991;
 Tue, 20 Feb 2018 13:49:22 -0800 (PST)
References: <87tvuel15z.fsf@HIDDEN>
 <20180218174922.47f656a7@HIDDEN> <87o9kjqqzw.fsf@HIDDEN>
 <20180220224317.36920bcb@HIDDEN>
User-agent: mu4e 1.0; emacs 25.3.1
From: Ricardo Wurmus <rekado@HIDDEN>
In-reply-to: <20180220224317.36920bcb@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Tue, 20 Feb 2018 22:49:19 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Message-ID: <87lgfnqqlc.fsf@HIDDEN>
X-ZohoMailClient: External
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


Danny Milosavljevic <dannym@HIDDEN> writes:

>> I don=E2=80=99t understand this patch.  How does it work?
>>
>> What is the effect of replacing /sys/firmware/efi with
>> /sys/firmware/non-efi?
>
> It won't find EFI since it's looking in the wrong place.
>
> That's what we want :)

So the value =E2=80=9C/sys/firmware/non-efi=E2=80=9D might as well be
=E2=80=9C/does-not-exist=E2=80=9D?

Your patch subject says =E2=80=9CMake sure that non-EFI grub doesn't try to=
 use
EFI=E2=80=9D, but the problem I had was that GRUB insisted on being passed =
a
=E2=80=9C--target=E2=80=9D option.  That was with a GRUB installation on a =
system in
legacy mode.  Do you mean that this failed because GRUB erroneously
attempted an EFI installation?

I=E2=80=99m thoroughly confused.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net






Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Danny Milosavljevic <dannym@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 20 Feb 2018 22:01:01 +0000
Resent-Message-ID: <handler.30311.B30311.151916403421803 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ricardo Wurmus <rekado@HIDDEN>
Cc: Mark H Weaver <mhw@HIDDEN>, Ricardo Wurmus <ricardo.wurmus@HIDDEN>, 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.151916403421803
          (code B ref 30311); Tue, 20 Feb 2018 22:01:01 +0000
Received: (at 30311) by debbugs.gnu.org; 20 Feb 2018 22:00:34 +0000
Received: from localhost ([127.0.0.1]:53353 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eoFxi-0005fb-FV
	for submit <at> debbugs.gnu.org; Tue, 20 Feb 2018 17:00:34 -0500
Received: from dd26836.kasserver.com ([85.13.145.193]:33910)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1eoFxh-0005fU-Dv
 for 30311 <at> debbugs.gnu.org; Tue, 20 Feb 2018 17:00:33 -0500
Received: from localhost (77.118.162.106.wireless.dyn.drei.com
 [77.118.162.106])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id D501C336024E;
 Tue, 20 Feb 2018 23:00:31 +0100 (CET)
Date: Tue, 20 Feb 2018 23:00:27 +0100
From: Danny Milosavljevic <dannym@HIDDEN>
Message-ID: <20180220230027.1884531a@HIDDEN>
In-Reply-To: <87lgfnqqlc.fsf@HIDDEN>
References: <87tvuel15z.fsf@HIDDEN>
 <20180218174922.47f656a7@HIDDEN>
 <87o9kjqqzw.fsf@HIDDEN>
 <20180220224317.36920bcb@HIDDEN>
 <87lgfnqqlc.fsf@HIDDEN>
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-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Hi Ricardo,

On Tue, 20 Feb 2018 22:49:19 +0100
Ricardo Wurmus <rekado@HIDDEN> wrote:

> So the value =E2=80=9C/sys/firmware/non-efi=E2=80=9D might as well be
> =E2=80=9C/does-not-exist=E2=80=9D?

Yes.

> Your patch subject says =E2=80=9CMake sure that non-EFI grub doesn't try =
to use
> EFI=E2=80=9D, but the problem I had was that GRUB insisted on being passe=
d a
> =E2=80=9C--target=E2=80=9D option. =20

> That was with a GRUB installation on a system in
> legacy mode.  Do you mean that this failed because GRUB erroneously
> attempted an EFI installation?

Yes, I think so.

There's a default-platform function in grub which determines the default
platform to use at runtime if you don't specify one.  It one checks for
the existence of /sys/firmware/efi, and if so, returns "i386-efi" or
"x86_64-efi" (see ./grub-core/osdep/linux/platform.c).

Grub's "configure" script has the ability to select which platform you
want to compile.  For the "grub" package, we choose i386, and for the
"grub-efi" package, we choose i386-efi.

The "grub-hybrid" package unions the "grub" and "grub-efi" packages,
preferring files from the "grub-efi" package.  I think this
configuration is what upstream actually tests (only).

In the "grub" package we then had the situation that it was compiled
for i386 (not EFI) but THEIR OWN default-platform function specified
to use i386-efi which is some seriously strange stuff.

Do you think that this was not the cause?




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Marius Bakke <mbakke@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 22 Feb 2018 15:07:01 +0000
Resent-Message-ID: <handler.30311.B30311.15193119952169 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Danny Milosavljevic <dannym@HIDDEN>
Cc: Mark H Weaver <mhw@HIDDEN>, Ricardo Wurmus <ricardo.wurmus@HIDDEN>, 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.15193119952169
          (code B ref 30311); Thu, 22 Feb 2018 15:07:01 +0000
Received: (at 30311) by debbugs.gnu.org; 22 Feb 2018 15:06:35 +0000
Received: from localhost ([127.0.0.1]:56635 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eosSB-0000Yu-6R
	for submit <at> debbugs.gnu.org; Thu, 22 Feb 2018 10:06:35 -0500
Received: from out2-smtp.messagingengine.com ([66.111.4.26]:41819)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1eosS9-0000Ym-Nf
 for 30311 <at> debbugs.gnu.org; Thu, 22 Feb 2018 10:06:34 -0500
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.nyi.internal (Postfix) with ESMTP id 8D2A320BDE;
 Thu, 22 Feb 2018 10:06:33 -0500 (EST)
Received: from frontend1 ([10.202.2.160])
 by compute5.internal (MEProxy); Thu, 22 Feb 2018 10:06:33 -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=0x++zHysri7GbD09ggzmXGvnQKGxl6frVrwBEkYLHZM=; b=Yncndg9E
 IY64DMKefl+FqEXba1OveDxLVtAWuixbk/W/g1PtkAVRkiLAreVVRldzJgAYN7a1
 yxKcSOspD/LbFV+s7WEw6GEPNQkuTuDsrcsrMco3qTrnFMDSmVw0gG9tPj717wYj
 1vXST4Lk7Oo/KASIdo4Ow2MwX0l0prBSjYaFofljQonKqLNC/zy5Zzkd1v1q+sHd
 GaMFIh2ANlS9+2IW/JO55ce9roHUSLCVffzuLtHVCHdTSLdtasWei65pLoi4kqrT
 MyFRTEYAEGsXieyZnInPpgwVt4YSUoi7j4s4QNtTtMjdnsq+EIQEt/0UCWFoZYxi
 aV3ooE4tZtsuFw==
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=fm2; bh=0x++zHysri7GbD09ggzmXGvnQKGxl
 6frVrwBEkYLHZM=; b=Ar6e7JSCg1rUXI4Np3tICpZ8F+BQFXZxH8GwpdCt4WXZk
 rH6wc/p5z/+3m6KXbA9ej7wCsHCzUsL53IRBmqUhU9HNjgJ6ZmG/3Ec/Ki9f7/tJ
 EKdf+TzKAnIUYazMmhYR7KUiL1+GN8NuuQl2LFZKbjQtW4VaxgRmYn67R0gVFh/u
 Zr3yL0ADj7cvU+wRyYGCXSZ5wAIlC3vu/uMcH4JQagdKcnpbLitmP2ZdhDUzsjHS
 jSv/522y8bF0Hcatw/HGpr4hFVVWP8dfsKN6/mspF87L1ohiLLsskar1ZJIZ0bFB
 48LdnS0Jd3bcbI+MMic4OL2MEn/Arhww0hDExr5kw==
X-ME-Sender: <xms:edyOWmZVilbHPePDzLeUALQKs2_o1g0XsGV6aJ4NZfCJ61mgBc_ObA>
Received: from localhost (cm-84.211.227.176.getinternet.no [84.211.227.176])
 by mail.messagingengine.com (Postfix) with ESMTPA id 04D8E7E17D;
 Thu, 22 Feb 2018 10:06:32 -0500 (EST)
From: Marius Bakke <mbakke@HIDDEN>
In-Reply-To: <20180220220011.737ee227@HIDDEN>
References: <idjmv0t503l.fsf@HIDDEN>
 <87tvuel15z.fsf@HIDDEN> <878tbocpm2.fsf@HIDDEN>
 <87606scohd.fsf@HIDDEN> <20180220220011.737ee227@HIDDEN>
User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1
 (x86_64-pc-linux-gnu)
Date: Thu, 22 Feb 2018 16:06:31 +0100
Message-ID: <87mv019i88.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--=-=-=
Content-Type: text/plain

Danny Milosavljevic <dannym@HIDDEN> writes:

> Also, grub-hybrid is supposed to use efi so the workaround shouldn't be used with it...

Right, I had forgotten about grub-hybrid.  That complicates things.

> What do you think about my direct grub patch?

That works too :-) It just felt a little "heavy-handed".  I'll let
Ricardo judge which approach to take.

I do wonder if we can do better though, and maybe even fix it properly.
Ricardo: Can you post the output of `find /sys/firmware/efi -maxdepth 1`
on the affected machine?  With luck, we'll find a variable that is only
present on "real" EFI.

Can you also post the contents of '/sys/firmware/efi/runtime'?

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqO3HcACgkQoqBt8qM6
VPqSEgf/RuzsaZ8bFG4EfBDdBdPCVcPuHYr6udH50T/0jf/W7LIVj+4Twj1VU6gj
H8m7Ev4UFFXbp95rlme2NDO2xAKq03R1S4UxZyMuaDonjwJo8lfvdyiYKD3tgFIx
iTPakwHBWtvntTC63UPVHcD8/YX9V2FldN/3Ehs/a1YXn7qoCITjQ8aIDaFUtN/F
lRkB3MS4iC0EYy2cbFpW9WfBtk7UxMRIfHrgwDmNIvs4RTpL1ijnXGl0HMxCqZ30
b+6/Jwb6LiJsU5pb1Y3svqGQztyJ3C4dj7Mp9/VfKEa2GXZyTAf/Pl6Rj2CWekSu
VqrBEdxAndpgkymjL0jmnHTeyVtjyg==
=dbJA
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Ricardo Wurmus <rekado@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 22 Feb 2018 15:48:02 +0000
Resent-Message-ID: <handler.30311.B30311.15193144765780 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Marius Bakke <mbakke@HIDDEN>
Cc: Danny Milosavljevic <dannym@HIDDEN>, Ricardo Wurmus <ricardo.wurmus@HIDDEN>, 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.15193144765780
          (code B ref 30311); Thu, 22 Feb 2018 15:48:02 +0000
Received: (at 30311) by debbugs.gnu.org; 22 Feb 2018 15:47:56 +0000
Received: from localhost ([127.0.0.1]:56652 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eot6B-0001VA-SQ
	for submit <at> debbugs.gnu.org; Thu, 22 Feb 2018 10:47:56 -0500
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21052)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1eot69-0001V2-Vu
 for 30311 <at> debbugs.gnu.org; Thu, 22 Feb 2018 10:47:54 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1519314436; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;
 l=865; bh=3RpL9kU82WH6Z+A/8nTmuOq7ppMsseQjW1HC2cfpZXs=;
 b=ZE0LKH/Tl7LN86uVW4gs+qg83Tfy2upFZEOzfznWT/nIE1p/7bhtOLe+DEiU8nBZ
 MnCPHRZPVGQm8kLAjjaByv59iQKupNa1bPJrvhD+V+iAAnTwuJLihjCPPiOohQo1tyg
 PLa3txPt3OaLJsU/8nmJW/aOwd3M5T8NuNTopqTU=
Received: from localhost (141.80.247.179 [141.80.247.179]) by mx.zohomail.com
 with SMTPS id 1519314435983353.02508198019314;
 Thu, 22 Feb 2018 07:47:15 -0800 (PST)
References: <idjmv0t503l.fsf@HIDDEN>
 <87tvuel15z.fsf@HIDDEN> <878tbocpm2.fsf@HIDDEN>
 <87606scohd.fsf@HIDDEN> <20180220220011.737ee227@HIDDEN>
 <87mv019i88.fsf@HIDDEN>
User-agent: mu4e 1.0; emacs 25.3.1
From: Ricardo Wurmus <rekado@HIDDEN>
In-reply-to: <87mv019i88.fsf@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Thu, 22 Feb 2018 16:47:13 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Message-ID: <871shdqb5q.fsf@HIDDEN>
X-ZohoMailClient: External
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


Marius Bakke <mbakke@HIDDEN> writes:

> Ricardo: Can you post the output of `find /sys/firmware/efi -maxdepth 1`
> on the affected machine?  With luck, we'll find a variable that is only
> present on "real" EFI.
>
> Can you also post the contents of '/sys/firmware/efi/runtime'?

Now that I have GuixSD installed on that machine I don=E2=80=99t have
/sys/firmware/efi at all.  /sys/firmware contains =E2=80=9Cacpi=E2=80=9D, =
=E2=80=9Cdmi=E2=80=9D, and
=E2=80=9Cmemmap=E2=80=9D only.

The problem occurred when I tried to install GuixSD (after booting from
a GuixSD installer USB drive), not when reconfiguring.  I don=E2=80=99t hav=
e a
USB drive with me at the moment, so I cannot check the contents of
/sys/firmware in the installer GuixSD now.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net






Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Marius Bakke <mbakke@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 23 Feb 2018 11:31:02 +0000
Resent-Message-ID: <handler.30311.B30311.151938545418724 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ricardo Wurmus <rekado@HIDDEN>
Cc: Danny Milosavljevic <dannym@HIDDEN>, Ricardo Wurmus <ricardo.wurmus@HIDDEN>, 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.151938545418724
          (code B ref 30311); Fri, 23 Feb 2018 11:31:02 +0000
Received: (at 30311) by debbugs.gnu.org; 23 Feb 2018 11:30:54 +0000
Received: from localhost ([127.0.0.1]:57146 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1epBYz-0004rw-MV
	for submit <at> debbugs.gnu.org; Fri, 23 Feb 2018 06:30:53 -0500
Received: from out5-smtp.messagingengine.com ([66.111.4.29]:34627)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1epBYx-0004ro-Sx
 for 30311 <at> debbugs.gnu.org; Fri, 23 Feb 2018 06:30:52 -0500
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.nyi.internal (Postfix) with ESMTP id 5237B20CA5;
 Fri, 23 Feb 2018 06:30:51 -0500 (EST)
Received: from frontend2 ([10.202.2.161])
 by compute5.internal (MEProxy); Fri, 23 Feb 2018 06:30:51 -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=6CrgstvWzpvBuA7+LgB6uM0a77akIMxNlCmW2lH9K6Y=; b=YUVhEpPD
 E3ZnNn+dE7Fmow1k0gH5xRX1xlR+RHlTXLhGDX80z3xGpmKj7FNNDGlWGC3Je5gt
 hvwo4kMeHp3ojQQrnInhhcQQu7yzlFgUedrJY8wKM1PdHunG9ERaBBkz43C1DORn
 mhutft1m6eWrwIpHwe6J70wyPdkwJuyp+E5r3orPGZZFITh0PpWJo4RFsBRH+2Ir
 rgfs/1VHzoozNaiJ7CF2kvLRSwv5SjkPu5ED2l8sCSgBiTPFh5Ez+2qzE1mHcx7y
 8yR4MiCiiisMRU1W8BEKSVzj1qSktLEbZ0jsEx7s+XtSlRkFu3rKEqwM6kBtEYu7
 pot9s00v/E1LTQ==
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=fm2; bh=6CrgstvWzpvBuA7+LgB6uM0a77akI
 MxNlCmW2lH9K6Y=; b=HK+GUUEhG08PVz+KZcS6z3y6Ml7Qt4GUO7ug/XhedJKcA
 BMaj6FOso3PV6jNtHxQhefufHrdMwtIsj9GRMDWl55HciYqaQj9a8/Hn5s8iK1cq
 MShafLPeX2OEaMaV+hUOv6S3JnFfN7lfKkT29me/p8R00iaJdfj8SA/dUm9Z3lSb
 KfNh3zNFG7tBU5dFTXQ91z842ekFbeOXIPmpXuXyC5hvO/sRYejsAD7nTFGIWI1W
 zGOYdOVFjCP5Xv89lOVjwMbDxXzjKN53Zgj4O3vOS3YKh8AwtQLCcj09aF29G6dY
 eaq9eXs2sijrxOHbq6lZc0PU7+WymMBLwUtzjnbAg==
X-ME-Sender: <xms:a_uPWn1KRZpoJX7lV9QDYwxY0MxfnathOXJxdq_HDmxsBgcSesXiFQ>
Received: from localhost (cm-84.211.227.176.getinternet.no [84.211.227.176])
 by mail.messagingengine.com (Postfix) with ESMTPA id C49E524313;
 Fri, 23 Feb 2018 06:30:50 -0500 (EST)
From: Marius Bakke <mbakke@HIDDEN>
In-Reply-To: <871shdqb5q.fsf@HIDDEN>
References: <idjmv0t503l.fsf@HIDDEN>
 <87tvuel15z.fsf@HIDDEN> <878tbocpm2.fsf@HIDDEN>
 <87606scohd.fsf@HIDDEN> <20180220220011.737ee227@HIDDEN>
 <87mv019i88.fsf@HIDDEN> <871shdqb5q.fsf@HIDDEN>
User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1
 (x86_64-pc-linux-gnu)
Date: Fri, 23 Feb 2018 12:30:48 +0100
Message-ID: <87bmgg9c47.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Ricardo Wurmus <rekado@HIDDEN> writes:

> Marius Bakke <mbakke@HIDDEN> writes:
>
>> Ricardo: Can you post the output of `find /sys/firmware/efi -maxdepth 1`
>> on the affected machine?  With luck, we'll find a variable that is only
>> present on "real" EFI.
>>
>> Can you also post the contents of '/sys/firmware/efi/runtime'?
>
> Now that I have GuixSD installed on that machine I don=E2=80=99t have
> /sys/firmware/efi at all.  /sys/firmware contains =E2=80=9Cacpi=E2=80=9D,=
 =E2=80=9Cdmi=E2=80=9D, and
> =E2=80=9Cmemmap=E2=80=9D only.
>
> The problem occurred when I tried to install GuixSD (after booting from
> a GuixSD installer USB drive), not when reconfiguring.  I don=E2=80=99t h=
ave a
> USB drive with me at the moment, so I cannot check the contents of
> /sys/firmware in the installer GuixSD now.

In this case I'm certain that the installer booted in EFI mode, crushing
my dreams of a proper fix.  So we'll need one of the proposed
workarounds to prevent this problem in the future.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqP+2kACgkQoqBt8qM6
VPrZuAgAn3jwrKMtExGQ5WWbRIRodfH07x66GlJVN+rie9wjWRG/GL5dwrsBvEJk
sUCRNVLGx000PQF/ojF11XnmdXnJH3tmHuMOl80BQzvf0XiLM8NcHFphtUcSwSzx
G608tnaDU6f5FNMK3pOGyBrP7Z/b0eeYpFYam5VHT/kIMXOeqGQxrBG728CYEo53
5C2hVZI6vFbOUTvsga0EKNWNDJ9ZCM2RVeg4U1zDZh9xbrTqwXXnw/y3tidnnDzL
Vbq+kI/nct3BiaiCbVBA5hxXCeTnQZFS91p0iaOST04zea+g4TK+e8z5N+/H4kXH
k+i8mqboCmEHA5+vYwCLq+wlegQqkg==
=1WN8
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#30311: efi-less grub install fails
Resent-From: Danny Milosavljevic <dannym@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 26 Mar 2018 21:17:01 +0000
Resent-Message-ID: <handler.30311.B30311.15220989624566 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 30311
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ricardo Wurmus <rekado@HIDDEN>
Cc: Mark H Weaver <mhw@HIDDEN>, Ricardo Wurmus <ricardo.wurmus@HIDDEN>, 30311 <at> debbugs.gnu.org
Received: via spool by 30311-submit <at> debbugs.gnu.org id=B30311.15220989624566
          (code B ref 30311); Mon, 26 Mar 2018 21:17:01 +0000
Received: (at 30311) by debbugs.gnu.org; 26 Mar 2018 21:16:02 +0000
Received: from localhost ([127.0.0.1]:54897 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0ZTF-0001BT-Qj
	for submit <at> debbugs.gnu.org; Mon, 26 Mar 2018 17:16:02 -0400
Received: from dd26836.kasserver.com ([85.13.145.193]:47938)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1f0ZTD-0001B8-G3
 for 30311 <at> debbugs.gnu.org; Mon, 26 Mar 2018 17:16:00 -0400
Received: from localhost (178.113.172.186.wireless.dyn.drei.com
 [178.113.172.186])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 5E4DF3362248;
 Mon, 26 Mar 2018 23:15:57 +0200 (CEST)
Date: Mon, 26 Mar 2018 23:15:45 +0200
From: Danny Milosavljevic <dannym@HIDDEN>
Message-ID: <20180326231545.32ad7d9d@HIDDEN>
In-Reply-To: <20180220230027.1884531a@HIDDEN>
References: <87tvuel15z.fsf@HIDDEN>
 <20180218174922.47f656a7@HIDDEN>
 <87o9kjqqzw.fsf@HIDDEN>
 <20180220224317.36920bcb@HIDDEN>
 <87lgfnqqlc.fsf@HIDDEN>
 <20180220230027.1884531a@HIDDEN>
X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 boundary="Sig_/.fHLr/+JjDD_Axyvhq7h9=7"; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--Sig_/.fHLr/+JjDD_Axyvhq7h9=7
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Any news on how to proceed on this grub target thing?

I think the patch below is harmless enough and makes each grub package
self-consistent (the non-efi grub doesn't try to use efi, the grub-efi
tries to use efi and grub-hybrid tries to use efi, then).

>From 263b1dc0de9643094bc41f4be47b4b2317e95d7c Mon Sep 17 00:00:00 2001
From: Danny Milosavljevic <dannym@HIDDEN>
Date: Sun, 18 Feb 2018 17:30:48 +0100
Subject: [PATCH] gnu: grub: Make sure that non-EFI grub doesn't try to use
 EFI.
Tags: patch

* gnu/packages/bootloader.scm (grub)[arguments]<:phases>
[patch-/sys/firmware/efi-out]: New phase.
(grub-efi)[arguments]<:phases>[patch-/sys/firmware/efi-out]: Delete phase.

Fixes <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30311>.
---
 gnu/packages/bootloaders.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 59eb22f24..c09829e17 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -103,6 +103,11 @@
                      (copy-file (assoc-ref inputs "unifont") "unifont.bdf.=
gz")
                      (system* "gunzip" "unifont.bdf.gz")
                      #t))
+                  (add-after 'unpack 'patch-/sys/firmware/efi-out
+                   (lambda _
+                     (substitute* "grub-core/osdep/linux/platform.c"
+                      (("/sys/firmware/efi") "/sys/firmware/non-efi"))
+                     #t))
                   (add-before 'check 'disable-flaky-test
                     (lambda _
                       ;; This test is unreliable. For more information, se=
e:
@@ -177,6 +182,7 @@ menu to select one of the installed operating systems.")
             `(cons "--with-platform=3Defi" ,flags))
            ((#:phases phases)
             `(modify-phases ,phases
+               (delete 'patch-/sys/firmware/efi-out)
                (add-after 'patch-stuff 'use-absolute-efibootmgr-path
                  (lambda* (#:key inputs #:allow-other-keys)
                    (substitute* "grub-core/osdep/unix/platform.c"

--Sig_/.fHLr/+JjDD_Axyvhq7h9=7
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlq5YwEACgkQ5xo1VCww
uqX1ewgAkeorF3oQ251U2U69xZLLzukjbYwTRFSqYLYTUCZqjGV9eiNt8+jH/XwX
dO5I98hdXZR6UfxPqhBkjc8xB9f7TJxTiQaVgUDWRCDhxkAlK7LYRAK4MLxcXC/2
i0OpHuO9Gzg4eslNOh/HSlDqH88NRI+6FLKrHxYSWyGQKoCiRce1Lms2CsEf8ebj
/bGqXtpvn1kMAMxKqbe/FD2hYFE39LRh41fiDlDdzmB3LhIDPIN1Tn+9VVP5bYbP
nZ6UCNA3hMS3I1SS50yGg2EYLuCpVBnRPLdfgl8tMcybbGOOZcuqOx8qJ/rTE8tS
LmGrq7GKoVptAgcR24bl3FsoNMRBOA==
=oGOM
-----END PGP SIGNATURE-----

--Sig_/.fHLr/+JjDD_Axyvhq7h9=7--





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.