From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: How to use custom grub? Date: Sat, 05 Nov 2016 12:37:07 +0000 Message-ID: <878tsy6r2k.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: <8737j85yek.fsf@duckhunt.i-did-not-set--mail-host-address--so-tickle-me> <87a8df1ioy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c30Dk-0006HJ-Pe for guix-devel@gnu.org; Sat, 05 Nov 2016 08:37:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c30Df-000289-SC for guix-devel@gnu.org; Sat, 05 Nov 2016 08:37:16 -0400 In-Reply-To: <87a8df1ioy.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s 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=E2=80=99s 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 #] 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 #] 4050: 15 [#] 1724: 14 [%start-stack load-stack ...] 1729: 13 [#] In unknown file: ?: 12 [primitive-load "/home/guix/scripts/guix"] In guix/ui.scm: 1220: 11 [run-guix-command system "reconfigure" "/etc/config.scm" "--fallba= ck"] In ice-9/boot-9.scm: 157: 10 [catch srfi-34 # ...] 157: 9 [catch system-error # ...] In ice-9/eval.scm: 481: 8 [lp (#) (#t)] In ice-9/r4rs.scm: 90: 7 [dynamic-wind # ...] In guix/store.scm: 1182: 6 [run-with-store # #= # ...] In ice-9/r4rs.scm: 39: 5 [call-with-values # = ...] In guix/store.scm: 1105: 4 [# #] In guix/packages.scm: 793: 3 [cache! # ...] 1099: 2 [thunk] 793: 1 [cache! # ...] 878: 0 [thunk] guix/packages.scm:878:27: In procedure thunk: guix/packages.scm:878:27: In procedure struct_vtable: Wrong type argument i= n position 1 (expectingstruct): # 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. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYHdJzAAoJEKKgbfKjOlT6/aAH/RyFZByF/RMvCqDG5CLMJ9gS 8PjrvyUqnjHoUkp13lbAGfRGOYfDh1qzQO/YUsvbJJKTXSdwsjIcXh4YlI1noKcR KXkd6xth+317ipcVAV3vHrBtkyjc27/nrXq5y7Y/G1cZYEPm3x9H/Ny6W6k9RSaW eJYb/jRiCIBFKnpaDXw0XwLTiwB3CBxEqA9Ygd/ihAR30S7nU04eA7/VubOtykx3 kfr9dx0PDXEN3EGvEHI+I7G9EO88caEaEU+gdNh/EfU0o+hrQaYnzTVcR84MlOkL 0n8EyX123tZy9p1UxmGTgPZ6NmaoG80h7+aUun/5rlFWLhgkHSQ4NVDx64IXxI0= =TUqV -----END PGP SIGNATURE----- --=-=-=--