From unknown Fri Aug 15 21:25:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18082: 'guix system reconfigure' fails to install grub from standalone guix Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 22 Jul 2014 17:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 18082@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.140604854626060 (code B ref -1); Tue, 22 Jul 2014 17:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Jul 2014 17:02:26 +0000 Received: from localhost ([127.0.0.1]:34840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9dSI-0006mC-8m for submit@debbugs.gnu.org; Tue, 22 Jul 2014 13:02:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53202) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9dSC-0006lr-2P for submit@debbugs.gnu.org; Tue, 22 Jul 2014 13:02:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9dRx-000658-5c for submit@debbugs.gnu.org; Tue, 22 Jul 2014 13:02: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=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9dRx-000654-3k for submit@debbugs.gnu.org; Tue, 22 Jul 2014 13:02:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9dRo-0002LM-KM for bug-guix@gnu.org; Tue, 22 Jul 2014 13:02:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9dRg-0005k4-5o for bug-guix@gnu.org; Tue, 22 Jul 2014 13:01:52 -0400 Received: from world.peace.net ([96.39.62.75]:52694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9dRg-0005k0-2k for bug-guix@gnu.org; Tue, 22 Jul 2014 13:01:44 -0400 Received: from c-24-62-95-23.hsd1.ma.comcast.net ([24.62.95.23] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1X9dRa-0004AJ-E3; Tue, 22 Jul 2014 13:01:38 -0400 From: Mark H Weaver Date: Tue, 22 Jul 2014 13:01:22 -0400 Message-ID: <87oawh5nvh.fsf@yeeloong.lan> 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 built guix from git master from within a standalone guix install. I then tried to run 'pre-inst-env guix system reconfigure' using the same OS configuration, and it failed to install grub. The error message said "failed to install GRUB on device '/dev/sda'", which indicates that 'install-grub' raised an exception. Mark From unknown Fri Aug 15 21:25:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18082: 'guix system reconfigure' fails to install grub from standalone guix 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, 22 Jul 2014 17:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mark H Weaver Cc: 18082@debbugs.gnu.org Received: via spool by 18082-submit@debbugs.gnu.org id=B18082.14060511924900 (code B ref 18082); Tue, 22 Jul 2014 17:47:01 +0000 Received: (at 18082) by debbugs.gnu.org; 22 Jul 2014 17:46:32 +0000 Received: from localhost ([127.0.0.1]:34873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9e8x-0001Gr-1f for submit@debbugs.gnu.org; Tue, 22 Jul 2014 13:46:31 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:40589) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9e8q-0001GY-FE for 18082@debbugs.gnu.org; Tue, 22 Jul 2014 13:46:25 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 47A26350F; Tue, 22 Jul 2014 19:46:18 +0200 (CEST) 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 Gs6rcKy2cazU; Tue, 22 Jul 2014 19:46:18 +0200 (CEST) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 87B2434E8; Tue, 22 Jul 2014 19:46:17 +0200 (CEST) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87oawh5nvh.fsf@yeeloong.lan> Date: Tue, 22 Jul 2014 19:46:16 +0200 In-Reply-To: <87oawh5nvh.fsf@yeeloong.lan> (Mark H. Weaver's message of "Tue, 22 Jul 2014 13:01:22 -0400") Message-ID: <878unlthg7.fsf@gnu.org> User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.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@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: 1.0 (+) In guix/scripts/system.scm, could you remove =E2=80=98false-if-exception=E2= =80=99 around =E2=80=98install-grub=E2=80=99, and report the backtrace? Thanks, Ludo=E2=80=99. From unknown Fri Aug 15 21:25:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18082: 'guix system reconfigure' fails to install grub from standalone guix Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 22 Jul 2014 19:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Cc: 18082@debbugs.gnu.org Received: via spool by 18082-submit@debbugs.gnu.org id=B18082.140605611614857 (code B ref 18082); Tue, 22 Jul 2014 19:09:01 +0000 Received: (at 18082) by debbugs.gnu.org; 22 Jul 2014 19:08:36 +0000 Received: from localhost ([127.0.0.1]:34885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9fQR-0003rY-0V for submit@debbugs.gnu.org; Tue, 22 Jul 2014 15:08:35 -0400 Received: from world.peace.net ([96.39.62.75]:60182 ident=hope6) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9fQP-0003rN-0a for 18082@debbugs.gnu.org; Tue, 22 Jul 2014 15:08:33 -0400 Received: from c-24-62-95-23.hsd1.ma.comcast.net ([24.62.95.23] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1X9fQG-0004ao-UU; Tue, 22 Jul 2014 15:08:25 -0400 From: Mark H Weaver References: <87oawh5nvh.fsf@yeeloong.lan> <878unlthg7.fsf@gnu.org> Date: Tue, 22 Jul 2014 15:08:08 -0400 In-Reply-To: <878unlthg7.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 22 Jul 2014 19:46:16 +0200") Message-ID: <878unl5i07.fsf@yeeloong.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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@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 (/) ludo@gnu.org (Ludovic Court=C3=A8s) writes: > In guix/scripts/system.scm, could you remove =E2=80=98false-if-exception= =E2=80=99 around > =E2=80=98install-grub=E2=80=99, and report the backtrace? Here it is: --8<---------------cut here---------------start------------->8--- root@jojen# ~mhw/guix/pre-inst-env guix system reconfigure ~mhw/os-install.= scm=20 The following derivation will be built: /gnu/store/ynkp0ijahvg4x1q6bfdw34d28hhqmgb4-grub.cfg.drv killing process 1117 /gnu/store/ay6f47hv2gy4hny4ycnbyn0jnyd60n4v-system /gnu/store/2yrylvn5c9apgfpppc5kfb24fi7mrnpl-grub-2.00 /gnu/store/6qwr8shknwlb1f1l0a7j6n3h8sg36bv7-grub.cfg activating system... populating /etc from /gnu/store/p4gvgs07g7gmsygjb3767r5k32v3l1y5-etc... setting up setuid programs in '/run/setuid-programs'... making '/gnu/store/ay6f47hv2gy4hny4ycnbyn0jnyd60n4v-system' the current sys= tem... Backtrace: In ice-9/boot-9.scm: 157: 15 [catch #t # ...] In unknown file: ?: 14 [apply-smob/1 #] In ice-9/boot-9.scm: 63: 13 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 12 [eval # #] In ice-9/boot-9.scm: 2401: 11 [save-module-excursion #] 4050: 10 [#] 1724: 9 [%start-stack load-stack ...] 1729: 8 [#] In unknown file: ?: 7 [primitive-load "/home/mhw/guix/scripts/guix"] In guix/ui.scm: 656: 6 [run-guix-command system "reconfigure" "/home/mhw/os-install.scm"] In ice-9/boot-9.scm: 157: 5 [catch srfi-34 # ...] 157: 4 [catch system-error ...] In guix/monads.scm: 430: 3 [run-with-store # ...] In guix/scripts/system.scm: 301: 2 [# #] In guix/build/install.scm: 47: 1 [install-grub # "/dev/sda" "/"] In unknown file: ?: 0 [copy-file # "//boot/grub/grub.cfg.new"] ERROR: In procedure copy-file: ERROR: Wrong type (expecting string): # /gnu/store/6qwr8shknwlb1f1l0a7j6n3h8s= g36bv7-grub.cfg b7ecf78> root@jojen#=20 --8<---------------cut here---------------end--------------->8--- and here's my os-install.scm: --8<---------------cut here---------------start------------->8--- (use-modules (gnu) (gnu packages emacs) (gnu packages admin) (gnu packages linux) (gnu services base) (gnu services networking) (guix monads) (srfi srfi-26)) (operating-system (host-name "jojen") (timezone "US/Eastern") (bootloader (grub-configuration (device "/dev/sda"))) (file-systems (list (file-system (device "librintel-guix") (mount-point "/") (type "ext4")))) (users (list (user-account (name "mhw") (group "mhw") (password "") (uid 1000) (home-directory "/home/mhw")))) (groups (cons (user-group (name "mhw") (id 1000)) %base-groups)) (packages (cons* emacs wpa-supplicant wireless-tools module-init-tools isc-dhcp %base-packages)) (services (let ((motd (text-file "motd" " This is the GNU operating system, welcome!\n\n"))) (list (console-font-service "tty1") (console-font-service "tty2") (console-font-service "tty3") (console-font-service "tty4") (console-font-service "tty5") (console-font-service "tty6") (mingetty-service "tty1" #:motd motd) (mingetty-service "tty2" #:motd motd) (mingetty-service "tty3" #:motd motd) (mingetty-service "tty4" #:motd motd) (mingetty-service "tty5" #:motd motd) (mingetty-service "tty6" #:motd motd) (static-networking-service "lo" "127.0.0.1" #:provision '(loopback)) (syslog-service) (guix-service #:authorize-hydra-key? #t) (nscd-service) (udev-service))))) --8<---------------cut here---------------end--------------->8--- Thanks! Mark From unknown Fri Aug 15 21:25:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18082: 'guix system reconfigure' fails to install grub from standalone guix 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, 22 Jul 2014 20:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mark H Weaver Cc: 18082@debbugs.gnu.org Received: via spool by 18082-submit@debbugs.gnu.org id=B18082.140606026623148 (code B ref 18082); Tue, 22 Jul 2014 20:18:02 +0000 Received: (at 18082) by debbugs.gnu.org; 22 Jul 2014 20:17:46 +0000 Received: from localhost ([127.0.0.1]:34919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9gVK-00061C-GM for submit@debbugs.gnu.org; Tue, 22 Jul 2014 16:17:46 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:40692) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9gVE-00060w-03 for 18082@debbugs.gnu.org; Tue, 22 Jul 2014 16:17:40 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 8F5DF34F7; Tue, 22 Jul 2014 22:17:34 +0200 (CEST) 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 OFbAA0cz0nFj; Tue, 22 Jul 2014 22:17:34 +0200 (CEST) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 2E71632CB; Tue, 22 Jul 2014 22:17:34 +0200 (CEST) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87oawh5nvh.fsf@yeeloong.lan> <878unlthg7.fsf@gnu.org> <878unl5i07.fsf@yeeloong.lan> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 Thermidor an 222 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Tue, 22 Jul 2014 22:17:33 +0200 In-Reply-To: <878unl5i07.fsf@yeeloong.lan> (Mark H. Weaver's message of "Tue, 22 Jul 2014 15:08:08 -0400") Message-ID: <8738dttag2.fsf@gnu.org> User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 1.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: 1.0 (+) --=-=-= Content-Type: text/plain Mark H Weaver skribis: > In guix/build/install.scm: > 47: 1 [install-grub # "/dev/sda" "/"] > In unknown file: > ?: 0 [copy-file # "//boot/grub/grub.cfg.new"] > > ERROR: In procedure copy-file: > ERROR: Wrong type (expecting string): # /gnu/store/6qwr8shknwlb1f1l0a7j6n3h8sg36bv7-grub.cfg b7ecf78> Oops, should be much better with this: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 57f4221..5737807 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -299,7 +299,8 @@ actions." (mlet %store-monad ((% (switch-to-system os))) (when grub? (unless (false-if-exception - (install-grub grub.cfg device "/")) + (install-grub (derivation->output-path grub.cfg) + device "/")) (leave (_ "failed to install GRUB on device '~a'~%") device))) (return #t))) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Can you confirm? > (services > (let ((motd (text-file "motd" " > This is the GNU operating system, welcome!\n\n"))) > (list (console-font-service "tty1") > (console-font-service "tty2") > (console-font-service "tty3") > (console-font-service "tty4") > (console-font-service "tty5") > (console-font-service "tty6") > > (mingetty-service "tty1" #:motd motd) > (mingetty-service "tty2" #:motd motd) > (mingetty-service "tty3" #:motd motd) > (mingetty-service "tty4" #:motd motd) > (mingetty-service "tty5" #:motd motd) > (mingetty-service "tty6" #:motd motd) > (static-networking-service "lo" "127.0.0.1" > #:provision '(loopback)) > (syslog-service) > (guix-service #:authorize-hydra-key? #t) > (nscd-service) > (udev-service))))) Perhaps we should make #:authorize-hydra-key? #t the default? Thanks! Ludo=E2=80=99. --=-=-=-- From unknown Fri Aug 15 21:25:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18082: 'guix system reconfigure' fails to install grub from standalone guix Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 23 Jul 2014 02:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Cc: 18082@debbugs.gnu.org Received: via spool by 18082-submit@debbugs.gnu.org id=B18082.14060833159109 (code B ref 18082); Wed, 23 Jul 2014 02:42:02 +0000 Received: (at 18082) by debbugs.gnu.org; 23 Jul 2014 02:41:55 +0000 Received: from localhost ([127.0.0.1]:35171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9mV8-0002Mq-GN for submit@debbugs.gnu.org; Tue, 22 Jul 2014 22:41:55 -0400 Received: from world.peace.net ([96.39.62.75]:60456 ident=hope3) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9mV4-0002Mg-NF for 18082@debbugs.gnu.org; Tue, 22 Jul 2014 22:41:51 -0400 Received: from c-24-62-95-23.hsd1.ma.comcast.net ([24.62.95.23] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1X9mUw-0006Io-R2; Tue, 22 Jul 2014 22:41:43 -0400 From: Mark H Weaver References: <87oawh5nvh.fsf@yeeloong.lan> <878unlthg7.fsf@gnu.org> <878unl5i07.fsf@yeeloong.lan> <8738dttag2.fsf@gnu.org> Date: Tue, 22 Jul 2014 22:41:26 -0400 In-Reply-To: <8738dttag2.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 22 Jul 2014 22:17:33 +0200") Message-ID: <87sils4x0p.fsf@yeeloong.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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@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 (/) ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Mark H Weaver skribis: > >> In guix/build/install.scm: >> 47: 1 [install-grub # "/dev/sda" "/"] >> In unknown file: >> ?: 0 [copy-file # "//boot/grub/grub.cfg.new"] >> >> ERROR: In procedure copy-file: >> ERROR: Wrong type (expecting string): # /gnu/store/6qwr8shknwlb1f1l0a7j6n3= h8sg36bv7-grub.cfg b7ecf78> > > Oops, should be much better with this: > > diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm > index 57f4221..5737807 100644 > --- a/guix/scripts/system.scm > +++ b/guix/scripts/system.scm > @@ -299,7 +299,8 @@ actions." > (mlet %store-monad ((% (switch-to-system os))) > (when grub? > (unless (false-if-exception > - (install-grub grub.cfg device "/")) > + (install-grub (derivation->output-path grub.cf= g) > + device "/")) > (leave (_ "failed to install GRUB on device '~a'~%") > device))) > (return #t))) > > Can you confirm? That helped, and now it successfully updates the grub.cfg file, but now there's another problem. When it tries to execvp 'grub-install', it can't find it because PATH is set to: "/gnu/store/l5815c2iars8scdy82grfjjmxv9ahgv2-shadow-4.1.5.1/sbin" Here's a transcript of the attempt, with (pk 'path (getenv "PATH")) inserted just before the (system* "grub-install" ...) call in guix/build/install.scm: --8<---------------cut here---------------start------------->8--- root@jojen# echo $PATH /run/setuid-programs:/run/current-system/profile/sbin:/root/.guix-profile/b= in:/run/current-system/profile/bin root@jojen# ~mhw/guix/pre-inst-env guix system reconfigure ~mhw/os-install.= scm The following derivation will be built: /gnu/store/1rj11nb1sv3jx2aalnqa7xl09nw6vfnr-grub.cfg.drv killing process 1587 /gnu/store/qfacd34rj6v8b9mi21qx9mj3lkq3c2pg-system /gnu/store/2yrylvn5c9apgfpppc5kfb24fi7mrnpl-grub-2.00 /gnu/store/ymxq6025wb6h3vp0glryykarz8r7hqhs-grub.cfg activating system... populating /etc from /gnu/store/89dn636ibbc2dy8wqaz30ck3dcli44jk-etc... setting up setuid programs in '/run/setuid-programs'... making '/gnu/store/qfacd34rj6v8b9mi21qx9mj3lkq3c2pg-system' the current sys= tem... ;;; (path "/gnu/store/l5815c2iars8scdy82grfjjmxv9ahgv2-shadow-4.1.5.1/sbin") In execvp of grub-install: No such file or directory Backtrace: In ice-9/boot-9.scm: 157: 14 [catch #t # ...] In unknown file: ?: 13 [apply-smob/1 #] In ice-9/boot-9.scm: 63: 12 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 11 [eval # #] In ice-9/boot-9.scm: 2401: 10 [save-module-excursion #] 4050: 9 [#] 1724: 8 [%start-stack load-stack ...] 1729: 7 [#] In unknown file: ?: 6 [primitive-load "/home/mhw/guix/scripts/guix"] In guix/ui.scm: 656: 5 [run-guix-command system "reconfigure" "/home/mhw/os-install.scm"] In ice-9/boot-9.scm: 157: 4 [catch srfi-34 # ...] 157: 3 [catch system-error ...] In guix/monads.scm: 430: 2 [run-with-store # ...] In guix/scripts/system.scm: 301: 1 [# #] In unknown file: ?: 0 [scm-error misc-error #f "~A" ("failed to install GRUB") #f] ERROR: In procedure scm-error: ERROR: failed to install GRUB root@jojen#=20 --8<---------------cut here---------------end--------------->8--- Thanks, Mark From unknown Fri Aug 15 21:25:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18082: 'guix system reconfigure' fails to install grub from standalone guix Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 23 Jul 2014 16:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mark H Weaver Cc: 18082@debbugs.gnu.org Received: via spool by 18082-submit@debbugs.gnu.org id=B18082.140613252431263 (code B ref 18082); Wed, 23 Jul 2014 16:23:01 +0000 Received: (at 18082) by debbugs.gnu.org; 23 Jul 2014 16:22:04 +0000 Received: from localhost ([127.0.0.1]:35769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9zIo-00088A-PP for submit@debbugs.gnu.org; Wed, 23 Jul 2014 12:22:03 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:41741) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9zIl-00087Z-0E for 18082@debbugs.gnu.org; Wed, 23 Jul 2014 12:21:59 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id D6578352D; Wed, 23 Jul 2014 18:21:57 +0200 (CEST) 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 1346ljc-6MTj; Wed, 23 Jul 2014 18:21:57 +0200 (CEST) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 80A90270; Wed, 23 Jul 2014 18:21:57 +0200 (CEST) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87oawh5nvh.fsf@yeeloong.lan> <878unlthg7.fsf@gnu.org> <878unl5i07.fsf@yeeloong.lan> <8738dttag2.fsf@gnu.org> <87sils4x0p.fsf@yeeloong.lan> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Thermidor an 222 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Wed, 23 Jul 2014 18:21:56 +0200 In-Reply-To: <87sils4x0p.fsf@yeeloong.lan> (Mark H. Weaver's message of "Tue, 22 Jul 2014 22:41:26 -0400") Message-ID: <87k374vye3.fsf@gnu.org> User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.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@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: 1.0 (+) Mark H Weaver skribis: > populating /etc from /gnu/store/89dn636ibbc2dy8wqaz30ck3dcli44jk-etc... > setting up setuid programs in '/run/setuid-programs'... > making '/gnu/store/qfacd34rj6v8b9mi21qx9mj3lkq3c2pg-system' the current s= ystem... > > ;;; (path "/gnu/store/l5815c2iars8scdy82grfjjmxv9ahgv2-shadow-4.1.5.1/sbi= n") > In execvp of grub-install: No such file or directory OK, commit 720ee24 should bring us one step closer. Could you check? Thanks a lot! Ludo=E2=80=99. From unknown Fri Aug 15 21:25:06 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#18082: closed (Re: bug#18082: 'guix system reconfigure' fails to install grub from standalone guix) Message-ID: References: <8761in4rjq.fsf@yeeloong.lan> <87oawh5nvh.fsf@yeeloong.lan> X-Gnu-PR-Message: they-closed 18082 X-Gnu-PR-Package: guix Reply-To: 18082@debbugs.gnu.org Date: Wed, 23 Jul 2014 22:53:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1406155984-16619-1" This is a multi-part message in MIME format... ------------=_1406155984-16619-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #18082: 'guix system reconfigure' fails to install grub from standalone guix 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 18082@debbugs.gnu.org. --=20 18082: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18082 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1406155984-16619-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 18082-done) by debbugs.gnu.org; 23 Jul 2014 22:52:36 +0000 Received: from localhost ([127.0.0.1]:35990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XA5Ok-0004Eo-RQ for submit@debbugs.gnu.org; Wed, 23 Jul 2014 18:52:35 -0400 Received: from world.peace.net ([96.39.62.75]:33338 ident=hope5) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XA5OX-0004Bz-Er for 18082-done@debbugs.gnu.org; Wed, 23 Jul 2014 18:52:31 -0400 Received: from c-98-217-64-74.hsd1.ma.comcast.net ([98.217.64.74] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XA5OQ-000156-AN; Wed, 23 Jul 2014 18:52:14 -0400 From: Mark H Weaver To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#18082: 'guix system reconfigure' fails to install grub from standalone guix References: <87oawh5nvh.fsf@yeeloong.lan> <878unlthg7.fsf@gnu.org> <878unl5i07.fsf@yeeloong.lan> <8738dttag2.fsf@gnu.org> <87sils4x0p.fsf@yeeloong.lan> <87k374vye3.fsf@gnu.org> Date: Wed, 23 Jul 2014 18:51:53 -0400 In-Reply-To: <87k374vye3.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 23 Jul 2014 18:21:56 +0200") Message-ID: <8761in4rjq.fsf@yeeloong.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18082-done Cc: 18082-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: 0.0 (/) ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Mark H Weaver skribis: > >> populating /etc from /gnu/store/89dn636ibbc2dy8wqaz30ck3dcli44jk-etc... >> setting up setuid programs in '/run/setuid-programs'... >> making '/gnu/store/qfacd34rj6v8b9mi21qx9mj3lkq3c2pg-system' the current = system... >> >> ;;; (path "/gnu/store/l5815c2iars8scdy82grfjjmxv9ahgv2-shadow-4.1.5.1/sb= in") >> In execvp of grub-install: No such file or directory > > OK, commit 720ee24 should bring us one step closer. Could you check? 'guix system reconfigure' now works. I'm closing this bug. Thanks! :) Mark ------------=_1406155984-16619-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 22 Jul 2014 17:02:26 +0000 Received: from localhost ([127.0.0.1]:34840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9dSI-0006mC-8m for submit@debbugs.gnu.org; Tue, 22 Jul 2014 13:02:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53202) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9dSC-0006lr-2P for submit@debbugs.gnu.org; Tue, 22 Jul 2014 13:02:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9dRx-000658-5c for submit@debbugs.gnu.org; Tue, 22 Jul 2014 13:02: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=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9dRx-000654-3k for submit@debbugs.gnu.org; Tue, 22 Jul 2014 13:02:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9dRo-0002LM-KM for bug-guix@gnu.org; Tue, 22 Jul 2014 13:02:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9dRg-0005k4-5o for bug-guix@gnu.org; Tue, 22 Jul 2014 13:01:52 -0400 Received: from world.peace.net ([96.39.62.75]:52694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9dRg-0005k0-2k for bug-guix@gnu.org; Tue, 22 Jul 2014 13:01:44 -0400 Received: from c-24-62-95-23.hsd1.ma.comcast.net ([24.62.95.23] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1X9dRa-0004AJ-E3; Tue, 22 Jul 2014 13:01:38 -0400 From: Mark H Weaver To: bug-guix@gnu.org Subject: 'guix system reconfigure' fails to install grub from standalone guix Date: Tue, 22 Jul 2014 13:01:22 -0400 Message-ID: <87oawh5nvh.fsf@yeeloong.lan> 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 built guix from git master from within a standalone guix install. I then tried to run 'pre-inst-env guix system reconfigure' using the same OS configuration, and it failed to install grub. The error message said "failed to install GRUB on device '/dev/sda'", which indicates that 'install-grub' raised an exception. Mark ------------=_1406155984-16619-1-- From unknown Fri Aug 15 21:25:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18082: 'guix system reconfigure' fails to install grub from standalone guix 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, 24 Jul 2014 08:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mark H Weaver Cc: 18082-done@debbugs.gnu.org Received: via spool by 18082-done@debbugs.gnu.org id=D18082.140619033617624 (code D ref 18082); Thu, 24 Jul 2014 08:26:01 +0000 Received: (at 18082-done) by debbugs.gnu.org; 24 Jul 2014 08:25:36 +0000 Received: from localhost ([127.0.0.1]:36338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XAELH-0004aC-TM for submit@debbugs.gnu.org; Thu, 24 Jul 2014 04:25:36 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:42513) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XAELF-0004a1-DC for 18082-done@debbugs.gnu.org; Thu, 24 Jul 2014 04:25:34 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 10D933542; Thu, 24 Jul 2014 10:25:32 +0200 (CEST) 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 m7hm6m2TrsUJ; Thu, 24 Jul 2014 10:25:31 +0200 (CEST) Received: from pluto (pluto.bordeaux.inria.fr [193.50.110.57]) by hera.aquilenet.fr (Postfix) with ESMTPSA id D42731CB4; Thu, 24 Jul 2014 10:25:31 +0200 (CEST) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87oawh5nvh.fsf@yeeloong.lan> <878unlthg7.fsf@gnu.org> <878unl5i07.fsf@yeeloong.lan> <8738dttag2.fsf@gnu.org> <87sils4x0p.fsf@yeeloong.lan> <87k374vye3.fsf@gnu.org> <8761in4rjq.fsf@yeeloong.lan> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 Thermidor an 222 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Thu, 24 Jul 2014 10:25:31 +0200 In-Reply-To: <8761in4rjq.fsf@yeeloong.lan> (Mark H. Weaver's message of "Wed, 23 Jul 2014 18:51:53 -0400") Message-ID: <87mwbzw4ck.fsf@gnu.org> User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.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@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: 1.0 (+) Thanks for testing! Ludo=E2=80=99.