From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#18082: 'guix system reconfigure' fails to install grub from standalone guix Date: Tue, 22 Jul 2014 22:17:33 +0200 Message-ID: <8738dttag2.fsf@gnu.org> References: <87oawh5nvh.fsf@yeeloong.lan> <878unlthg7.fsf@gnu.org> <878unl5i07.fsf@yeeloong.lan> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9gVm-0003Al-7w for bug-guix@gnu.org; Tue, 22 Jul 2014 16:18:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9gVf-0002F0-0o for bug-guix@gnu.org; Tue, 22 Jul 2014 16:18:10 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:39653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9gVe-0002Eu-TW for bug-guix@gnu.org; Tue, 22 Jul 2014 16:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X9gVe-000627-CY for bug-guix@gnu.org; Tue, 22 Jul 2014 16:18:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <878unl5i07.fsf@yeeloong.lan> (Mark H. Weaver's message of "Tue, 22 Jul 2014 15:08:08 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Mark H Weaver Cc: 18082@debbugs.gnu.org --=-=-= 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. --=-=-=--