From unknown Sun Aug 17 01:52:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21068: guix system: error: build failed: path `/gnu/store/..-grub.cfg' is not valid Resent-From: Germano Gabbianelli Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 15 Jul 2015 18:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21068 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 21068@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.143698486512399 (code B ref -1); Wed, 15 Jul 2015 18:28:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Jul 2015 18:27:45 +0000 Received: from localhost ([127.0.0.1]:50339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFRPE-0003Du-QP for submit@debbugs.gnu.org; Wed, 15 Jul 2015 14:27:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38636) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFQvj-0002UQ-BO for submit@debbugs.gnu.org; Wed, 15 Jul 2015 13:57:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFQvc-0007uX-Ph for submit@debbugs.gnu.org; Wed, 15 Jul 2015 13:57:10 -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.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFQvc-0007uQ-Nj for submit@debbugs.gnu.org; Wed, 15 Jul 2015 13:57:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFQvb-0005HM-9z for bug-guix@gnu.org; Wed, 15 Jul 2015 13:57:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFQvW-0007sH-QF for bug-guix@gnu.org; Wed, 15 Jul 2015 13:57:07 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:35125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFQvW-0007ra-IW for bug-guix@gnu.org; Wed, 15 Jul 2015 13:57:02 -0400 Received: by wgjx7 with SMTP id x7so39657039wgj.2 for ; Wed, 15 Jul 2015 10:57:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=dm/ZcPIaDLtml5vihCNWHb3XXm0Z2pK5NtP6L8JtQKs=; b=QBIg2ph6C16Ky5WItUOCxAn5oTjCLyV7bWJaAylLUujNJB6uAlorg5BM3kgBpziYDt O4eVxYRWHO1QXOm7pjJS1D2DaNvp4uTiDt0RHQdF63UKVb7iUZ3m03MtANKaBE/oD8as kwNL61+3xdGKbo8bwgXHWwdzw9N52scP6Jgd1x12MAjNidPMGcMF4oCXTEbpkv7v1ifU tbYt+qy9MwLPnMz1g9g2M9zwyOnu2jMhMidel1XgylUsPCuu8rq3CitFVvLJMPyQ1WRj iLpf9WFvvuGyMkQj+2Qr/8ZnYzcZzSkgXLSumcOjizCLsfl59o/Z5jQbP4sQeC2ZUa+i Z6dw== X-Received: by 10.180.73.145 with SMTP id l17mr1304577wiv.39.1436983021053; Wed, 15 Jul 2015 10:57:01 -0700 (PDT) Received: from [192.168.1.65] ([93.51.48.78]) by smtp.googlemail.com with ESMTPSA id nb9sm845186wic.10.2015.07.15.10.56.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jul 2015 10:56:59 -0700 (PDT) Message-ID: <55A69EEB.3050400@gmail.com> Date: Wed, 15 Jul 2015 19:56:59 +0200 From: Germano Gabbianelli User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080603040201050205030008" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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: -4.0 (----) X-Mailman-Approved-At: Wed, 15 Jul 2015 14:27:43 -0400 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: -4.0 (----) This is a multi-part message in MIME format. --------------080603040201050205030008 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello, I am using lubuntu 14.04 and I installed the binary version of guix following the documentation ( https://www.gnu.org/software/guix/manual/html_node/Binary-Installation.html#Binary-Installation ) Then I ran `guix pull`, made a new partition (ext4) and tried to run `guix system init` on it: $ sudo guix system init /mnt/etc/config.scm /mnt The config.scm is attached. The interesting part is that I specified to install grub on /dev/sda9 ( the root partition for guix) instead of /dev/sda. The command failed saying that "Embedding is not possible" ( here details: https://paste.debian.net/282642/ ). Following the advice got from Mark on the IRC channel I tried specifing the --no-grub flag, but got an other error: tyrion ~$ sudo guix system init --no-grub /mnt/etc/config.scm /mnt [sudo] password for tyrion: warning: failed to install locale: Invalid argument /gnu/store/q32xg8nmyjwrl5yc18hj7ay5h4rgzkgy-system initializing operating system under '/mnt'... guix system: error: build failed: path `/gnu/store/hill6gywff6p2c3h1zbc7h5xj0cr4yn2-grub.cfg' is not valid I also trying reinstalling guix by deleting /gnu, /var/guix, and /var/log/guix (and also wiping the partition with rm) and following again the documentation. Tried again the last command and got the same error again. --------------080603040201050205030008 Content-Type: text/x-scheme; name="config.scm" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="config.scm" ;; This is an operating system configuration template ;; for a "desktop" setup with X11. (use-modules (gnu) (gnu system nss)) (use-service-modules desktop) (use-package-modules xfce ratpoison wicd avahi xorg certs) (operating-system (host-name "gnu") (timezone "Europe/Rome") (locale "en_US.UTF-8") ;; Assuming /dev/sdX is the target hard disk, and "root" is ;; the label of the target root file system. (bootloader (grub-configuration (device "/dev/sda9"))) (file-systems (cons* (file-system (device "/dev/sda9") (mount-point "/") (type "ext4")) (file-system (device "/dev/sda3") (mount-point "/mnt/win") (type "ntfs")) (file-system (device "/dev/mapper/home") (mount-point "/home") (type "ext4")) %base-file-systems)) (mapped-devices (list (mapped-device (source "/dev/sda8") (target "home") (type luks-device-mapping)))) (users (list (user-account (name "tyrion") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/tyrion")))) ;; Add Xfce and Ratpoison; that allows us to choose ;; sessions using either of these at the log-in screen. (packages (cons* xfce ratpoison ;desktop environments xterm wicd avahi ;useful tools nss-certs ;for HTTPS access %base-packages)) ;; Use the "desktop" services, which include the X11 ;; log-in service, networking with Wicd, and more. (services %desktop-services) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) --------------080603040201050205030008-- From unknown Sun Aug 17 01:52:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21068: guix system: error: build failed: path `/gnu/store/..-grub.cfg' is not valid Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 16 Jul 2015 13:38:00 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21068 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Germano Gabbianelli Cc: 21068@debbugs.gnu.org Received: via spool by 21068-submit@debbugs.gnu.org id=B21068.143705383810640 (code B ref 21068); Thu, 16 Jul 2015 13:38:00 +0000 Received: (at 21068) by debbugs.gnu.org; 16 Jul 2015 13:37:18 +0000 Received: from localhost ([127.0.0.1]:50796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFjLh-0002lX-9i for submit@debbugs.gnu.org; Thu, 16 Jul 2015 09:37:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53409) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFjLa-0002lD-TN for 21068@debbugs.gnu.org; Thu, 16 Jul 2015 09:37:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFjLU-0001pm-Ns for 21068@debbugs.gnu.org; Thu, 16 Jul 2015 09:37:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([208.118.235.10]:44277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFjLU-0001ph-Ir; Thu, 16 Jul 2015 09:37:04 -0400 Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:57133 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZFjLU-0002ap-1Q; Thu, 16 Jul 2015 09:37:04 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <55A69EEB.3050400@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 Messidor 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: Thu, 16 Jul 2015 15:37:01 +0200 In-Reply-To: <55A69EEB.3050400@gmail.com> (Germano Gabbianelli's message of "Wed, 15 Jul 2015 19:56:59 +0200") Message-ID: <87y4igw7eq.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 (------) Germano Gabbianelli skribis: > tyrion ~$ sudo guix system init --no-grub /mnt/etc/config.scm /mnt > [sudo] password for tyrion: > warning: failed to install locale: Invalid argument > /gnu/store/q32xg8nmyjwrl5yc18hj7ay5h4rgzkgy-system > > initializing operating system under '/mnt'... > guix system: error: build failed: path > `/gnu/store/hill6gywff6p2c3h1zbc7h5xj0cr4yn2-grub.cfg' is not valid This could be due to how you fiddled manually with /gnu/store and /var/guix. In general, one should never manually touch these directories; instead, one should use =E2=80=98guix gc=E2=80=99 and similar = commands. > I also trying reinstalling guix by deleting /gnu, /var/guix, and > /var/log/guix (and also wiping the partition with rm) To be safe, could you start anew again, and report back? sudo rm -rf /gnu /var/guix # reinstall from binary tarball > (bootloader (grub-configuration (device "/dev/sda9"))) There=E2=80=99s a mistake here: it should be =E2=80=9C/dev/sda=E2=80=9D (sa= y), not =E2=80=9C/dev/sda9=E2=80=9D (the latter designates a partition, whereas the former designates a disk.) It doesn=E2=80=99t matter here since you passed --no-grub, but it w= ould otherwise lead to a =E2=80=98grub-install=E2=80=99 failure. HTH, Ludo=E2=80=99. From unknown Sun Aug 17 01:52:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21068: guix system: error: build failed: path `/gnu/store/..-grub.cfg' is not valid Resent-From: Germano Gabbianelli Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 26 Jul 2015 13:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21068 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 21068@debbugs.gnu.org Received: via spool by 21068-submit@debbugs.gnu.org id=B21068.143791714124538 (code B ref 21068); Sun, 26 Jul 2015 13:26:01 +0000 Received: (at 21068) by debbugs.gnu.org; 26 Jul 2015 13:25:41 +0000 Received: from localhost ([127.0.0.1]:58928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJLvv-0006Ng-AK for submit@debbugs.gnu.org; Sun, 26 Jul 2015 09:25:40 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:36559) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJLvr-0006NT-MI for 21068@debbugs.gnu.org; Sun, 26 Jul 2015 09:25:36 -0400 Received: by wicgb10 with SMTP id gb10so79433517wic.1 for <21068@debbugs.gnu.org>; Sun, 26 Jul 2015 06:25:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=dM6NUjactf9xYwxgakeqE0RasMldGuklxMuG5qZ2zJo=; b=X5vO84TG3i6JCJS3Z0vYHy+ivGYbnAt4bf9KH1iQyxgQFJsxg307E1cYnyRPzsdVA6 VKnuoKO45tlPTkX04ySTvNOVnxhbnhXNWV9WtzReqPJzJtxbYMISzQg8VVRcoE+5vOrr vwYu3Rw0+cSphpFzrIkCHyHiyGF1lsN1eFKAbiitLc9Fswkj/9pAOOuP+YjOep6kY02j lf58zgOuXw+QUXWjRPz8y1HeOcCG9Ld2vfefL1ElX862bGfYTyk0SK8X9KhFs93yZZDw DBBkCPuo/BtV+zZ6HvEFAsx3NhzWVc3TghHyBPUd0h0HczsQpKcgr1av23dPr+JmkDd2 nPLA== X-Received: by 10.180.73.2 with SMTP id h2mr15182532wiv.72.1437917134833; Sun, 26 Jul 2015 06:25:34 -0700 (PDT) Received: from [10.169.17.164] (nat129-dot1x.polimi.it. [131.175.28.129]) by smtp.googlemail.com with ESMTPSA id d17sm22539624wjs.32.2015.07.26.06.25.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Jul 2015 06:25:34 -0700 (PDT) Message-ID: <55B4DFCD.1040500@gmail.com> Date: Sun, 26 Jul 2015 15:25:33 +0200 From: Germano Gabbianelli User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 References: <55A69EEB.3050400@gmail.com> <87y4igw7eq.fsf@gnu.org> In-Reply-To: <87y4igw7eq.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 (/) On 16/07/15 15:37, Ludovic Courtès wrote: > This could be due to how you fiddled manually with /gnu/store and > /var/guix. In general, one should never manually touch these > directories; instead, one should use ‘guix gc’ and similar commands. I did not fiddle with those directory. I only removed them to reinstall guix. >> I also trying reinstalling guix by deleting /gnu, /var/guix, and >> /var/log/guix (and also wiping the partition with rm) > To be safe, could you start anew again, and report back? > > sudo rm -rf /gnu /var/guix > # reinstall from binary tarball I did it, for the third time. I always get the same error: guix system: error: build failed: path `/gnu/store/kv217jzyir2wx0lwwxl7ljpwc4fzafpi-grub.cfg' is not valid This time I used guix 0.8.3. >> (bootloader (grub-configuration (device "/dev/sda9"))) > There’s a mistake here: it should be “/dev/sda” (say), not “/dev/sda9” > (the latter designates a partition, whereas the former designates a > disk.) It doesn’t matter here since you passed --no-grub, but it would > otherwise lead to a ‘grub-install’ failure. I tried removing that line, but if I do I get an error saying "missing field initializers (bootloader)". So I also tried to specify a non existent disk (i.e. /dev/sdb), so it does not complain about the bootloader options, but I still get the "path 'grub.cfg' is not valid" error. From unknown Sun Aug 17 01:52:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21068: guix system: error: build failed: path `/gnu/store/..-grub.cfg' is not valid Resent-From: Germano Gabbianelli Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 26 Jul 2015 19:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21068 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 21068@debbugs.gnu.org Received: via spool by 21068-submit@debbugs.gnu.org id=B21068.1437940323851 (code B ref 21068); Sun, 26 Jul 2015 19:53:02 +0000 Received: (at 21068) by debbugs.gnu.org; 26 Jul 2015 19:52:03 +0000 Received: from localhost ([127.0.0.1]:59408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJRxr-0000Df-EW for submit@debbugs.gnu.org; Sun, 26 Jul 2015 15:52:03 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:37932) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJRxo-0000DF-Ji for 21068@debbugs.gnu.org; Sun, 26 Jul 2015 15:52:01 -0400 Received: by wibxm9 with SMTP id xm9so90917505wib.1 for <21068@debbugs.gnu.org>; Sun, 26 Jul 2015 12:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=fW3sLo+q3MZucy2piSigycmdmCIAkS2bagSRE0AZ2MA=; b=ZNK4DNHLGNw/KiO+uWpX51UlvVlxh/bMJzrMn36oq6xonffORWNiFPGCEnbmrtn6l0 fGOSi2Je5magEiPYI7yUGMohIDHtoytVIg1MZ9HZQjFBFxR5MGD/kYT7nF8eva3OzVnB HJhAqbzcAp/+WQ9+sHsgmwJuOrUrwLM/bh8CLSxDpk3h98NYjeqgGXZYjsrEHA/sXBzz JhnDfF1WSVykA/cZ7/YwUJDgo8hXzhZQj3Y4dBemnVwRb1RG9ofUvg2WMRAbi38JUik2 5PnrcGniSfWO3+x0NZm8tzFE8VG7KlTCkvv4Qfb9AFp6rfdeaW0Ddsg3hYAt7Ve1TFsf dFBA== X-Received: by 10.181.25.234 with SMTP id it10mr16880795wid.41.1437940319843; Sun, 26 Jul 2015 12:51:59 -0700 (PDT) Received: from [192.168.1.65] (93-34-73-188.ip48.fastwebnet.it. [93.34.73.188]) by smtp.googlemail.com with ESMTPSA id yu4sm3813422wjc.43.2015.07.26.12.51.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Jul 2015 12:51:58 -0700 (PDT) Message-ID: <55B53A5D.3020901@gmail.com> Date: Sun, 26 Jul 2015 21:51:57 +0200 From: Germano Gabbianelli User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 References: <55A69EEB.3050400@gmail.com> <87y4igw7eq.fsf@gnu.org> <55B4DFCD.1040500@gmail.com> In-Reply-To: <55B4DFCD.1040500@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 (/) I also tried burning guixsd to an external usb stick and installing directly from that, but it failed with the same error. From unknown Sun Aug 17 01:52:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21068: guix system: error: build failed: path `/gnu/store/..-grub.cfg' is not valid Resent-From: Alex Kost Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 27 Jul 2015 08:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21068 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Germano Gabbianelli Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 21068@debbugs.gnu.org Received: via spool by 21068-submit@debbugs.gnu.org id=B21068.143798513710170 (code B ref 21068); Mon, 27 Jul 2015 08:19:01 +0000 Received: (at 21068) by debbugs.gnu.org; 27 Jul 2015 08:18:57 +0000 Received: from localhost ([127.0.0.1]:59623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJdce-0002dx-UH for submit@debbugs.gnu.org; Mon, 27 Jul 2015 04:18:57 -0400 Received: from mail-lb0-f170.google.com ([209.85.217.170]:36747) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJdcb-0002do-DQ for 21068@debbugs.gnu.org; Mon, 27 Jul 2015 04:18:54 -0400 Received: by lbbqi7 with SMTP id qi7so48155746lbb.3 for <21068@debbugs.gnu.org>; Mon, 27 Jul 2015 01:18:52 -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:content-transfer-encoding; bh=WpvI7cg/SQHuDWHestQdLudBwegtuYDMBCATf4hPoYw=; b=lw/4o9S/2w60BHFLy5RQyVPa+nexMfXMCb5Soe+Z4AlAPqISjIJZDmK77iriLcU08N dFHzAuc74L5wWnjyMs2XKsqwOuOk+HQtb5+2KeR+BsQgN7JU0J/xFv04BhOQlDjnaU0J 2hpuqvgrtjHqoeJ4DM6tJrgx1BtK9C+bmJwomUgWGPbt8LQqq/ZBiF+WiselWChwgLao Oxnjr4v+wrrylkD12uVBvyv2qCLiEIuDCoBsdlkN3V+zyuNMC+4CcovJvd7ocxPACKd9 y4jabJJKvnaBMq2CCdlBUiqYWs2v3yUu7YusQsjgfA29nOuWr5zg0GjTzyoXNofKxIqR haSw== X-Received: by 10.152.197.2 with SMTP id iq2mr25911116lac.103.1437985132463; Mon, 27 Jul 2015 01:18:52 -0700 (PDT) Received: from leviafan ([217.107.192.146]) by smtp.gmail.com with ESMTPSA id aj4sm3771127lbd.5.2015.07.27.01.18.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 01:18:51 -0700 (PDT) From: Alex Kost References: <55A69EEB.3050400@gmail.com> <87y4igw7eq.fsf@gnu.org> <55B4DFCD.1040500@gmail.com> Date: Mon, 27 Jul 2015 11:18:49 +0300 In-Reply-To: <55B4DFCD.1040500@gmail.com> (Germano Gabbianelli's message of "Sun, 26 Jul 2015 15:25:33 +0200") Message-ID: <874mkqxbbq.fsf@gmail.com> 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-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 (/) Germano Gabbianelli (2015-07-26 16:25 +0300) wrote: > On 16/07/15 15:37, Ludovic Court=C3=A8s wrote: >> This could be due to how you fiddled manually with /gnu/store and >> /var/guix. In general, one should never manually touch these >> directories; instead, one should use =E2=80=98guix gc=E2=80=99 and simil= ar commands. > I did not fiddle with those directory. I only removed them to reinstall > guix. >>> I also trying reinstalling guix by deleting /gnu, /var/guix, and >>> /var/log/guix (and also wiping the partition with rm) >> To be safe, could you start anew again, and report back? >> >> sudo rm -rf /gnu /var/guix >> # reinstall from binary tarball > I did it, for the third time. I always get the same error: > > guix system: error: build failed: path > `/gnu/store/kv217jzyir2wx0lwwxl7ljpwc4fzafpi-grub.cfg' is not valid > > This time I used guix 0.8.3. > >>> (bootloader (grub-configuration (device "/dev/sda9"))) >> There=E2=80=99s a mistake here: it should be =E2=80=9C/dev/sda=E2=80=9D = (say), not =E2=80=9C/dev/sda9=E2=80=9D >> (the latter designates a partition, whereas the former designates a >> disk.) It doesn=E2=80=99t matter here since you passed --no-grub, but i= t would >> otherwise lead to a =E2=80=98grub-install=E2=80=99 failure. > I tried removing that line, but if I do I get an error saying "missing > field initializers (bootloader)". > So I also tried to specify a non existent disk (i.e. /dev/sdb), so it > does not complain about the bootloader options, but I still get the > "path 'grub.cfg' is not valid" error. I have just built your config.scm successfully. (I'm not suru but) it looks like you either have a broken store or some stale files in the partition you want to initialize the system to. Could you try the following from your Lubuntu (without 'sudo'): guix pull guix system build --no-grub /path/to/your/config.scm If the system has been built successfully (it definitely should), make sure your partition is absolutely empty (!) and init the system there: sudo -E guix system init --no-grub /path/to/your/config.scm --=20 Alex 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 Aug 17 01:52:03 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Germano Gabbianelli Subject: bug#21068: closed (Re: bug#21224: guix system init --no-grub doesn't work) Message-ID: References: <87611kui5c.fsf@gnu.org> <55A69EEB.3050400@gmail.com> X-Gnu-PR-Message: they-closed 21068 X-Gnu-PR-Package: guix Reply-To: 21068@debbugs.gnu.org Date: Mon, 02 Nov 2015 22:55:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1446504904-22408-1" This is a multi-part message in MIME format... ------------=_1446504904-22408-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #21068: guix system: error: build failed: path `/gnu/store/..-grub.cfg' is = not valid 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 21068@debbugs.gnu.org. --=20 21068: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21068 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1446504904-22408-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 21068-done) by debbugs.gnu.org; 2 Nov 2015 22:54:49 +0000 Received: from localhost ([127.0.0.1]:50086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZtO01-0005oB-Ef for submit@debbugs.gnu.org; Mon, 02 Nov 2015 17:54:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35926) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZtNzh-0005ni-Mb for 21068-done@debbugs.gnu.org; Mon, 02 Nov 2015 17:54:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtNze-0005ob-6A for 21068-done@debbugs.gnu.org; Mon, 02 Nov 2015 17:54: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_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?=) To: Mark H Weaver Subject: Re: bug#21224: guix system init --no-grub doesn't work 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-Debbugs-Envelope-To: 21068-done Cc: 21068-done@debbugs.gnu.org, 21224-done@debbugs.gnu.org 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. ------------=_1446504904-22408-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Jul 2015 18:27:45 +0000 Received: from localhost ([127.0.0.1]:50339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFRPE-0003Du-QP for submit@debbugs.gnu.org; Wed, 15 Jul 2015 14:27:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38636) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFQvj-0002UQ-BO for submit@debbugs.gnu.org; Wed, 15 Jul 2015 13:57:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFQvc-0007uX-Ph for submit@debbugs.gnu.org; Wed, 15 Jul 2015 13:57:10 -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.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFQvc-0007uQ-Nj for submit@debbugs.gnu.org; Wed, 15 Jul 2015 13:57:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFQvb-0005HM-9z for bug-guix@gnu.org; Wed, 15 Jul 2015 13:57:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFQvW-0007sH-QF for bug-guix@gnu.org; Wed, 15 Jul 2015 13:57:07 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:35125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFQvW-0007ra-IW for bug-guix@gnu.org; Wed, 15 Jul 2015 13:57:02 -0400 Received: by wgjx7 with SMTP id x7so39657039wgj.2 for ; Wed, 15 Jul 2015 10:57:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=dm/ZcPIaDLtml5vihCNWHb3XXm0Z2pK5NtP6L8JtQKs=; b=QBIg2ph6C16Ky5WItUOCxAn5oTjCLyV7bWJaAylLUujNJB6uAlorg5BM3kgBpziYDt O4eVxYRWHO1QXOm7pjJS1D2DaNvp4uTiDt0RHQdF63UKVb7iUZ3m03MtANKaBE/oD8as kwNL61+3xdGKbo8bwgXHWwdzw9N52scP6Jgd1x12MAjNidPMGcMF4oCXTEbpkv7v1ifU tbYt+qy9MwLPnMz1g9g2M9zwyOnu2jMhMidel1XgylUsPCuu8rq3CitFVvLJMPyQ1WRj iLpf9WFvvuGyMkQj+2Qr/8ZnYzcZzSkgXLSumcOjizCLsfl59o/Z5jQbP4sQeC2ZUa+i Z6dw== X-Received: by 10.180.73.145 with SMTP id l17mr1304577wiv.39.1436983021053; Wed, 15 Jul 2015 10:57:01 -0700 (PDT) Received: from [192.168.1.65] ([93.51.48.78]) by smtp.googlemail.com with ESMTPSA id nb9sm845186wic.10.2015.07.15.10.56.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jul 2015 10:56:59 -0700 (PDT) Message-ID: <55A69EEB.3050400@gmail.com> Date: Wed, 15 Jul 2015 19:56:59 +0200 From: Germano Gabbianelli User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: bug-guix@gnu.org Subject: guix system: error: build failed: path `/gnu/store/..-grub.cfg' is not valid Content-Type: multipart/mixed; boundary="------------080603040201050205030008" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 15 Jul 2015 14:27:43 -0400 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: -4.0 (----) This is a multi-part message in MIME format. --------------080603040201050205030008 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello, I am using lubuntu 14.04 and I installed the binary version of guix following the documentation ( https://www.gnu.org/software/guix/manual/html_node/Binary-Installation.html#Binary-Installation ) Then I ran `guix pull`, made a new partition (ext4) and tried to run `guix system init` on it: $ sudo guix system init /mnt/etc/config.scm /mnt The config.scm is attached. The interesting part is that I specified to install grub on /dev/sda9 ( the root partition for guix) instead of /dev/sda. The command failed saying that "Embedding is not possible" ( here details: https://paste.debian.net/282642/ ). Following the advice got from Mark on the IRC channel I tried specifing the --no-grub flag, but got an other error: tyrion ~$ sudo guix system init --no-grub /mnt/etc/config.scm /mnt [sudo] password for tyrion: warning: failed to install locale: Invalid argument /gnu/store/q32xg8nmyjwrl5yc18hj7ay5h4rgzkgy-system initializing operating system under '/mnt'... guix system: error: build failed: path `/gnu/store/hill6gywff6p2c3h1zbc7h5xj0cr4yn2-grub.cfg' is not valid I also trying reinstalling guix by deleting /gnu, /var/guix, and /var/log/guix (and also wiping the partition with rm) and following again the documentation. Tried again the last command and got the same error again. --------------080603040201050205030008 Content-Type: text/x-scheme; name="config.scm" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="config.scm" ;; This is an operating system configuration template ;; for a "desktop" setup with X11. (use-modules (gnu) (gnu system nss)) (use-service-modules desktop) (use-package-modules xfce ratpoison wicd avahi xorg certs) (operating-system (host-name "gnu") (timezone "Europe/Rome") (locale "en_US.UTF-8") ;; Assuming /dev/sdX is the target hard disk, and "root" is ;; the label of the target root file system. (bootloader (grub-configuration (device "/dev/sda9"))) (file-systems (cons* (file-system (device "/dev/sda9") (mount-point "/") (type "ext4")) (file-system (device "/dev/sda3") (mount-point "/mnt/win") (type "ntfs")) (file-system (device "/dev/mapper/home") (mount-point "/home") (type "ext4")) %base-file-systems)) (mapped-devices (list (mapped-device (source "/dev/sda8") (target "home") (type luks-device-mapping)))) (users (list (user-account (name "tyrion") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/tyrion")))) ;; Add Xfce and Ratpoison; that allows us to choose ;; sessions using either of these at the log-in screen. (packages (cons* xfce ratpoison ;desktop environments xterm wicd avahi ;useful tools nss-certs ;for HTTPS access %base-packages)) ;; Use the "desktop" services, which include the X11 ;; log-in service, networking with Wicd, and more. (services %desktop-services) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) --------------080603040201050205030008-- ------------=_1446504904-22408-1-- From unknown Sun Aug 17 01:52:03 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mark H Weaver Subject: bug#21224: closed (Re: bug#21224: guix system init --no-grub doesn't work) Message-ID: References: <87611kui5c.fsf@gnu.org> <87egjcqt3p.fsf@netris.org> X-Gnu-PR-Message: they-closed 21224 X-Gnu-PR-Package: guix Reply-To: 21224@debbugs.gnu.org Date: Mon, 02 Nov 2015 22:55:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1446504905-22408-3" This is a multi-part message in MIME format... ------------=_1446504905-22408-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #21068: guix system init --no-grub doesn't work 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 21224@debbugs.gnu.org. --=20 21068: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21068 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1446504905-22408-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 21068-done) by debbugs.gnu.org; 2 Nov 2015 22:54:49 +0000 Received: from localhost ([127.0.0.1]:50086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZtO01-0005oB-Ef for submit@debbugs.gnu.org; Mon, 02 Nov 2015 17:54:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35926) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZtNzh-0005ni-Mb for 21068-done@debbugs.gnu.org; Mon, 02 Nov 2015 17:54:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtNze-0005ob-6A for 21068-done@debbugs.gnu.org; Mon, 02 Nov 2015 17:54: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_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?=) To: Mark H Weaver Subject: Re: bug#21224: guix system init --no-grub doesn't work 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-Debbugs-Envelope-To: 21068-done Cc: 21068-done@debbugs.gnu.org, 21224-done@debbugs.gnu.org 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. ------------=_1446504905-22408-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 To: bug-guix@gnu.org Subject: guix system init --no-grub doesn't work 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-Debbugs-Envelope-To: submit 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 ------------=_1446504905-22408-3--