guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use custom grub?


From: Marius Bakke
Subject: Re: How to use custom grub?
Date: Sat, 05 Nov 2016 12:37:07 +0000
User-agent: Notmuch/0.23.1 (https://notmuchmail.org) Emacs/25.1.1 (x86_64-unknown-linux-gnu)

Ludovic Courtès <address@hidden> 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: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]