From: ludo@gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw@netris.org>
Cc: 18082@debbugs.gnu.org
Subject: bug#18082: 'guix system reconfigure' fails to install grub from standalone guix
Date: Tue, 22 Jul 2014 22:17:33 +0200 [thread overview]
Message-ID: <8738dttag2.fsf@gnu.org> (raw)
In-Reply-To: <878unl5i07.fsf@yeeloong.lan> (Mark H. Weaver's message of "Tue, 22 Jul 2014 15:08:08 -0400")
[-- Attachment #1: Type: text/plain, Size: 433 bytes --]
Mark H Weaver <mhw@netris.org> 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): #<derivation /gnu/store/ynkp0ijahvg4x1q6bfdw34d28hhqmgb4-grub.cfg.drv => /gnu/store/6qwr8shknwlb1f1l0a7j6n3h8sg36bv7-grub.cfg b7ecf78>
Oops, should be much better with this:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 651 bytes --]
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)))
[-- Attachment #3: Type: text/plain, Size: 928 bytes --]
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’.
next prev parent reply other threads:[~2014-07-22 20:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-22 17:01 bug#18082: 'guix system reconfigure' fails to install grub from standalone guix Mark H Weaver
2014-07-22 17:46 ` Ludovic Courtès
2014-07-22 19:08 ` Mark H Weaver
2014-07-22 20:17 ` Ludovic Courtès [this message]
2014-07-23 2:41 ` Mark H Weaver
2014-07-23 16:21 ` Ludovic Courtès
2014-07-23 22:51 ` Mark H Weaver
2014-07-24 8:25 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8738dttag2.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=18082@debbugs.gnu.org \
--cc=mhw@netris.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).