From unknown Sun Jun 22 07:50:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21224: guix system init --no-grub doesn't work Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 09 Aug 2015 17:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21224 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 21224@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14391406964265 (code B ref -1); Sun, 09 Aug 2015 17:19:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Aug 2015 17:18:16 +0000 Received: from localhost ([127.0.0.1]:51390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOUEi-00016j-FN for submit@debbugs.gnu.org; Sun, 09 Aug 2015 13:18:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39478) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOUEO-000162-H2 for submit@debbugs.gnu.org; Sun, 09 Aug 2015 13:18:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOUEN-0003SA-9M for submit@debbugs.gnu.org; Sun, 09 Aug 2015 13:17:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOUEN-0003S4-72 for submit@debbugs.gnu.org; Sun, 09 Aug 2015 13:17:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOUEM-0007AY-8o for bug-guix@gnu.org; Sun, 09 Aug 2015 13:17:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOUEG-0003Pu-Ox for bug-guix@gnu.org; Sun, 09 Aug 2015 13:17:54 -0400 Received: from world.peace.net ([50.252.239.5]:45863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOUEG-0003Pk-Kr for bug-guix@gnu.org; Sun, 09 Aug 2015 13:17:48 -0400 Received: from c-98-217-13-77.hsd1.ma.comcast.net ([98.217.13.77] helo=jojen) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1ZOUEA-00027s-4a; Sun, 09 Aug 2015 13:17:42 -0400 From: Mark H Weaver Date: Sun, 09 Aug 2015 13:17:30 -0400 Message-ID: <87egjcqt3p.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I'm in the early stages of adding GuixSD for the Lemote Yeeloong, and so for now would like to avoid getting grub working on the Yeeloong. So, I tried running "guix system init config.scm /target --no-grub", and this is what happens: /gnu/store/...-system initializing operating system under '/target'... guix system: error: build failed: path `/gnu/store/...-grub.cfg' is not valid In the 'install' procedure in (guix scripts system), I tried changing: (maybe-copy grub.cfg) to: (mwhen grub? (maybe-copy grub.cfg)) and then the command works, but almost nothing gets copied to /target. In retrospect, this makes sense: as the comment says, the installer works by copying the *closure* of grub.cfg. However, it fails when --no-grub is passed, apparently because grub.cfg was not built. Mark From unknown Sun Jun 22 07:50:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21224: guix system init --no-grub doesn't work Resent-From: Alex Kost Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 10 Aug 2015 14:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21224 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mark H Weaver Cc: 21224@debbugs.gnu.org Received: via spool by 21224-submit@debbugs.gnu.org id=B21224.143921787331878 (code B ref 21224); Mon, 10 Aug 2015 14:45:02 +0000 Received: (at 21224) by debbugs.gnu.org; 10 Aug 2015 14:44:33 +0000 Received: from localhost ([127.0.0.1]:52291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOoJU-0008I6-OB for submit@debbugs.gnu.org; Mon, 10 Aug 2015 10:44:33 -0400 Received: from mail-la0-f53.google.com ([209.85.215.53]:33438) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOoJS-0008Hy-Sj for 21224@debbugs.gnu.org; Mon, 10 Aug 2015 10:44:31 -0400 Received: by lalv9 with SMTP id v9so12157352lal.0 for <21224@debbugs.gnu.org>; Mon, 10 Aug 2015 07:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=4lehO22n3AC9mrQ6O5XLGGgvDtm0XkywzUCMqoozl8w=; b=ERvJhTH2k4tZJS3lYrn3KayrEVn1ztZDsAFQOtcVuKlYJw0yaUeO2k/ajOD05VCeOG cbrQ+FuLV5X6F4TzzhtAg2kWsVjcdAR0Y6geRC0pbNBACsMUapdqgSEKV4g7ctt4Y+c0 M4Zlv8ZnhwOCdXKsVLiiXe4wVWXsAK2pwVIJI05GSu/viA7WLf1+1d90PYpig7qX2ZuB 7qbsFXTDuuZ6cxPgSDbnYobqdavTs2bzhBm+p4UA7+6ZMPAAzoLBIX2X7f7eTUJsJNDc 1E4hsLTXD+Y0QzOZ99Q6+2X2PoUtA5FMHXmo+b7nh9Dw6t0h3l+oWA++Fm950RCzy+Ej d+Ng== X-Received: by 10.152.121.37 with SMTP id lh5mr13642491lab.2.1439217869891; Mon, 10 Aug 2015 07:44:29 -0700 (PDT) Received: from leviafan ([217.107.192.146]) by smtp.gmail.com with ESMTPSA id kl3sm3350356lbb.28.2015.08.10.07.44.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Aug 2015 07:44:29 -0700 (PDT) From: Alex Kost References: <87egjcqt3p.fsf@netris.org> Date: Mon, 10 Aug 2015 17:44:27 +0300 In-Reply-To: <87egjcqt3p.fsf@netris.org> (Mark H. Weaver's message of "Sun, 09 Aug 2015 13:17:30 -0400") Message-ID: <87bnefyzhw.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Mark H Weaver (2015-08-09 20:17 +0300) wrote: > I'm in the early stages of adding GuixSD for the Lemote Yeeloong, and so > for now would like to avoid getting grub working on the Yeeloong. So, > I tried running "guix system init config.scm /target --no-grub", and > this is what happens: > > /gnu/store/...-system > > initializing operating system under '/target'... > guix system: error: build failed: path `/gnu/store/...-grub.cfg' is not valid > > In the 'install' procedure in (guix scripts system), I tried changing: > > (maybe-copy grub.cfg) > > to: > > (mwhen grub? > (maybe-copy grub.cfg)) > > and then the command works, but almost nothing gets copied to /target. > In retrospect, this makes sense: as the comment says, the installer > works by copying the *closure* of grub.cfg. However, it fails when > --no-grub is passed, apparently because grub.cfg was not built. (This message is probably not very helpful but) AFAICT this bug was introduced by commit f245b03debfa05fa692e95769a9b7116200bf191. -- Alex From unknown Sun Jun 22 07:50:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21224: guix system init --no-grub doesn't work Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 23 Aug 2015 18:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21224 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 21224@debbugs.gnu.org Received: via spool by 21224-submit@debbugs.gnu.org id=B21224.14403556233080 (code B ref 21224); Sun, 23 Aug 2015 18:48:01 +0000 Received: (at 21224) by debbugs.gnu.org; 23 Aug 2015 18:47:03 +0000 Received: from localhost ([127.0.0.1]:36218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZTaII-0000nc-DA for submit@debbugs.gnu.org; Sun, 23 Aug 2015 14:47:02 -0400 Received: from world.peace.net ([50.252.239.5]:36567) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZTaIF-0000nE-Ro for 21224@debbugs.gnu.org; Sun, 23 Aug 2015 14:47:00 -0400 Received: from [10.1.10.32] (helo=yeeloong) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1ZTaI9-0008R5-0l; Sun, 23 Aug 2015 14:46:53 -0400 From: Mark H Weaver References: <87egjcqt3p.fsf@netris.org> Date: Sun, 23 Aug 2015 14:46:33 -0400 In-Reply-To: <87egjcqt3p.fsf@netris.org> (Mark H. Weaver's message of "Sun, 09 Aug 2015 13:17:30 -0400") Message-ID: <871tetx2pi.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Mark H Weaver writes: > I'm in the early stages of adding GuixSD for the Lemote Yeeloong, and so > for now would like to avoid getting grub working on the Yeeloong. So, > I tried running "guix system init config.scm /target --no-grub", and > this is what happens: > > /gnu/store/...-system > > initializing operating system under '/target'... > guix system: error: build failed: path `/gnu/store/...-grub.cfg' is not valid I ran into the same problem while porting GuixSD to MIPS, before I had GRUB working. The problem here is that the method for copying the necessary store items to the target directory is to copy grub.cfg and its transitive closure, using (maybe-copy grub.cfg). However, if --no-grub is specified, then grub.cfg is not built. The preliminary approach I used successfully was to build and install grub.cfg even if --no-grub is specified, although 'grub-install' is not run in that case. Here's the patch I used: --8<---------------cut here---------------start------------->8--- diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 45f5982..6ec1f29 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -331,8 +331,10 @@ boot directly to the kernel or to the bootloader." (if (eq? 'init action) '() (previous-grub-entries)))) - (drvs -> (if (and grub? (memq action '(init reconfigure))) - (list sys grub grub.cfg) + (drvs -> (if (memq action '(init reconfigure)) + (if grub? + (list sys grub.cfg grub) + (list sys grub.cfg)) (list sys))) (% (maybe-build drvs #:dry-run? dry-run? #:use-substitutes? use-substitutes?))) --8<---------------cut here---------------end--------------->8--- Mark From unknown Sun Jun 22 07:50:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21224: guix system init --no-grub doesn't work Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 25 Aug 2015 13:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21224 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mark H Weaver Cc: 21224@debbugs.gnu.org Received: via spool by 21224-submit@debbugs.gnu.org id=B21224.144051061712947 (code B ref 21224); Tue, 25 Aug 2015 13:51:02 +0000 Received: (at 21224) by debbugs.gnu.org; 25 Aug 2015 13:50:17 +0000 Received: from localhost ([127.0.0.1]:37691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUEcC-0003Mk-K7 for submit@debbugs.gnu.org; Tue, 25 Aug 2015 09:50:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55097) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUEc9-0003Mb-FQ for 21224@debbugs.gnu.org; Tue, 25 Aug 2015 09:50:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUEc4-0001gr-Ao for 21224@debbugs.gnu.org; Tue, 25 Aug 2015 09:50:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,BAYES_05, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([208.118.235.10]:45325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUEc4-0001gj-8E; Tue, 25 Aug 2015 09:50:08 -0400 Received: from e247-050.eduroam.tuwien.ac.at ([128.130.247.50]:46576 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZUEc3-0004tD-AB; Tue, 25 Aug 2015 09:50:08 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87egjcqt3p.fsf@netris.org> <871tetx2pi.fsf@netris.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 Fructidor an 223 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x3D9AEBB5 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-unknown-linux-gnu Date: Tue, 25 Aug 2015 15:50:00 +0200 In-Reply-To: <871tetx2pi.fsf@netris.org> (Mark H. Weaver's message of "Sun, 23 Aug 2015 14:46:33 -0400") Message-ID: <87r3mro4tz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.10 X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) Mark H Weaver skribis: > Mark H Weaver writes: > >> I'm in the early stages of adding GuixSD for the Lemote Yeeloong, and so >> for now would like to avoid getting grub working on the Yeeloong. So, >> I tried running "guix system init config.scm /target --no-grub", and >> this is what happens: >> >> /gnu/store/...-system >> >> initializing operating system under '/target'... >> guix system: error: build failed: path `/gnu/store/...-grub.cfg' is no= t valid > > I ran into the same problem while porting GuixSD to MIPS, before I had > GRUB working. > > The problem here is that the method for copying the necessary store > items to the target directory is to copy grub.cfg and its transitive > closure, using (maybe-copy grub.cfg). Right. > However, if --no-grub is specified, then grub.cfg is not built. I see. Good catch! > The preliminary approach I used successfully was to build and install > grub.cfg even if --no-grub is specified, although 'grub-install' is not > run in that case. Here's the patch I used: > > diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm > index 45f5982..6ec1f29 100644 > --- a/guix/scripts/system.scm > +++ b/guix/scripts/system.scm > @@ -331,8 +331,10 @@ boot directly to the kernel or to the bootloader." > (if (eq? 'init action) > '() > (previous-grub-entries)= ))) > - (drvs -> (if (and grub? (memq action '(init reconfigure))) > - (list sys grub grub.cfg) > + (drvs -> (if (memq action '(init reconfigure)) > + (if grub? > + (list sys grub.cfg grub) > + (list sys grub.cfg)) Sounds like a reasonable approach. We=E2=80=99d be building slightly too m= uch in the --no-grub case, but that=E2=80=99s probably acceptable. WDYT? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 28 07:09:39 2015 Received: (at control) by debbugs.gnu.org; 28 Oct 2015 11:09:40 +0000 Received: from localhost ([127.0.0.1]:41249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrObr-0001Qt-Kb for submit@debbugs.gnu.org; Wed, 28 Oct 2015 07:09:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59359) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrObq-0001Ql-Hi for control@debbugs.gnu.org; Wed, 28 Oct 2015 07:09:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrObm-00084M-DZ for control@debbugs.gnu.org; Wed, 28 Oct 2015 07:09:38 -0400 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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrObm-00084I-Af for control@debbugs.gnu.org; Wed, 28 Oct 2015 07:09:34 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:47778 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZrObl-0003Jy-Cq for control@debbugs.gnu.org; Wed, 28 Oct 2015 07:09:33 -0400 Date: Wed, 28 Oct 2015 12:09:31 +0100 Message-Id: <87h9lb9rmc.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #21224 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) merge 21224 21068 From unknown Sun Jun 22 07:50:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21224: guix system init --no-grub doesn't work Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 02 Nov 2015 22:55:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21224 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mark H Weaver Cc: 21068-done@debbugs.gnu.org, 21224-done@debbugs.gnu.org Received: via spool by 21224-done@debbugs.gnu.org id=D21224.144650489422361 (code D ref 21224); Mon, 02 Nov 2015 22:55:06 +0000 Received: (at 21224-done) by debbugs.gnu.org; 2 Nov 2015 22:54:54 +0000 Received: from localhost ([127.0.0.1]:50090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZtO05-0005oZ-SL for submit@debbugs.gnu.org; Mon, 02 Nov 2015 17:54:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36062) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZtO03-0005oK-LM for 21224-done@debbugs.gnu.org; Mon, 02 Nov 2015 17:54:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtO00-0005uc-BB for 21224-done@debbugs.gnu.org; Mon, 02 Nov 2015 17:54:51 -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_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtNze-0005oT-3l; Mon, 02 Nov 2015 17:54:26 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:57718 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZtNzd-0008Qe-FJ; Mon, 02 Nov 2015 17:54:25 -0500 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87egjcqt3p.fsf@netris.org> <871tetx2pi.fsf@netris.org> Date: Mon, 02 Nov 2015 23:54:23 +0100 In-Reply-To: <871tetx2pi.fsf@netris.org> (Mark H. Weaver's message of "Sun, 23 Aug 2015 14:46:33 -0400") Message-ID: <87611kui5c.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Mark H Weaver skribis: > I ran into the same problem while porting GuixSD to MIPS, before I had > GRUB working. > > The problem here is that the method for copying the necessary store > items to the target directory is to copy grub.cfg and its transitive > closure, using (maybe-copy grub.cfg). > > However, if --no-grub is specified, then grub.cfg is not built. > > The preliminary approach I used successfully was to build and install > grub.cfg even if --no-grub is specified, although 'grub-install' is not > run in that case. Here's the patch I used: > > diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm > index 45f5982..6ec1f29 100644 > --- a/guix/scripts/system.scm > +++ b/guix/scripts/system.scm > @@ -331,8 +331,10 @@ boot directly to the kernel or to the bootloader." > (if (eq? 'init action) > '() > (previous-grub-entries)= ))) > - (drvs -> (if (and grub? (memq action '(init reconfigure))) > - (list sys grub grub.cfg) > + (drvs -> (if (memq action '(init reconfigure)) > + (if grub? > + (list sys grub.cfg grub) > + (list sys grub.cfg)) > (list sys))) > (% (maybe-build drvs #:dry-run? dry-run? > #:use-substitutes? use-substitutes?))) Applied in a704361, thanks! Ludo=E2=80=99.