From: Marius Bakke <mbakke@fastmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: How to use custom grub?
Date: Sat, 05 Nov 2016 12:37:07 +0000 [thread overview]
Message-ID: <878tsy6r2k.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87a8df1ioy.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2534 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
>> Looking at guix/scripts/system.scm, grub is defined as
>> (package->derivation grub). I tried exporting grub-configuration-grub
>> and using that in the (package->derivation) procedure, but that broke
>> the world :)
>>
>> What is the correct approach here?
>
> What you describe above looks like the right approach. Maybe we could
> see exactly what broke and work from there, unless Danny’s patch already
> solves the issue?
I haven't gotten around to really try Dannys patch, but here is the
backtrace when exporting grub-configuration-grub in gnu/system/grub.scm
and changing to (package->derivation grub-configuration-grub) in
guix/scripts/system.scm:
Backtrace:
In unknown file:
?: 19 [apply-smob/1 #<catch-closure 19426a0>]
In ice-9/boot-9.scm:
63: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
432: 17 [eval # #]
In ice-9/boot-9.scm:
2401: 16 [save-module-excursion #<procedure 1960940 at ice-9/boot-9.scm:4045:3 ()>]
4050: 15 [#<procedure 1960940 at ice-9/boot-9.scm:4045:3 ()>]
1724: 14 [%start-stack load-stack ...]
1729: 13 [#<procedure 1977ea0 ()>]
In unknown file:
?: 12 [primitive-load "/home/guix/scripts/guix"]
In guix/ui.scm:
1220: 11 [run-guix-command system "reconfigure" "/etc/config.scm" "--fallback"]
In ice-9/boot-9.scm:
157: 10 [catch srfi-34 #<procedure 5963f80 at guix/ui.scm:426:2 ()> ...]
157: 9 [catch system-error #<procedure 5aeca20 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/eval.scm:
481: 8 [lp (#<fluid 32>) (#t)]
In ice-9/r4rs.scm:
90: 7 [dynamic-wind #<procedure 47daa40 at ice-9/boot-9.scm:1133:2 _> ...]
In guix/store.scm:
1182: 6 [run-with-store # #<procedure 4624720 at ice-9/eval.scm:416:20 (a)> # ...]
In ice-9/r4rs.scm:
39: 5 [call-with-values #<procedure 3be11b0 at ice-9/eval.scm:416:20 ()> ...]
In guix/store.scm:
1105: 4 [#<procedure 3be1240 at guix/store.scm:1104:28 (store)> #]
In guix/packages.scm:
793: 3 [cache! #<weak-key-hash-table 2104540 846/1759> ...]
1099: 2 [thunk]
793: 1 [cache! #<weak-key-hash-table 2104240 940/1759> ...]
878: 0 [thunk]
guix/packages.scm:878:27: In procedure thunk:
guix/packages.scm:878:27: In procedure struct_vtable: Wrong type argument in position 1 (expectingstruct): #<procedure %grub-configuration-grub-procedure (a)>
I don't really understand what's going on in that file, so hopefully the
problem is obvious :)
I will post the other patches for UEFI support shortly, as they are
mostly unrelated to this.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]
next prev parent reply other threads:[~2016-11-05 12:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-03 16:19 How to use custom grub? Marius Bakke
2016-11-03 16:50 ` Danny Milosavljevic
2016-11-03 20:47 ` Marius Bakke
2016-11-03 20:47 ` Marius Bakke
2016-11-04 13:24 ` Ludovic Courtès
2016-11-05 12:37 ` Marius Bakke [this message]
2016-11-05 23:41 ` Danny Milosavljevic
2016-11-07 10:48 ` Danny Milosavljevic
2016-11-07 11:36 ` Marius Bakke
2016-11-07 15:05 ` Danny Milosavljevic
2016-11-07 15:50 ` Marius Bakke
2016-11-07 22:26 ` Danny Milosavljevic
2016-11-08 12:40 ` Ludovic Courtès
2016-11-08 14:36 ` Marius Bakke
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=878tsy6r2k.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me \
--to=mbakke@fastmail.com \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.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).