From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: How to use custom grub? Date: Thu, 03 Nov 2016 16:19:31 +0000 Message-ID: <8737j85yek.fsf@duckhunt.i-did-not-set--mail-host-address--so-tickle-me> 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]:37495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Kjt-0000Eh-Pd for guix-devel@gnu.org; Thu, 03 Nov 2016 12:19:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Kjp-00038Z-M9 for guix-devel@gnu.org; Thu, 03 Nov 2016 12:19:41 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:59397) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2Kjp-00038N-I2 for guix-devel@gnu.org; Thu, 03 Nov 2016 12:19:37 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 579B420A75 for ; Thu, 3 Nov 2016 12:19:34 -0400 (EDT) Received: from localhost (169.243.187.81.in-addr.arpa [81.187.243.169]) by mail.messagingengine.com (Postfix) with ESMTPA id 361C6CC07F for ; Thu, 3 Nov 2016 12:19:33 -0400 (EDT) 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: guix-devel@gnu.org --=-=-= Content-Type: text/plain Greetings Guix, I have a working UEFI GuixSD system, by adding FAT32 support to base-initrd and installing the initial UEFI bootloader from a non-Guix live CD. Now that it's booted, I want to use a custom 'grub-efi' package so that `guix system reconfigure` works without passing --no-grub and manually copying grub.cfg. The "grub-configuration" object takes a 'grub' argument which defaults to (@ (gnu packages grub) grub). However setting that to 'grub-efi' in the operating-system declaration or even directly in gnu/system/grub.scm has no effect. 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? Additionally the "grub-install" arguments are slightly different for EFI systems. Tips for properly handling that appreciated. Thanks! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYG2OTAAoJEKKgbfKjOlT6zWwIAMglOwYmaIq4NqU75SikWx6p Yf0d3fcAZqfgWtPynpoqlx44eeAGXdkVnJHfH2JYwmO6vYsIU6Kp/n2VaYGyR1KS LaPnW4gQRdLVUmLbh1EuFh421ywlwtU/NLuUyvMydMCNlciiaT63DZue+yIaAZK/ +D3fdpISxvplizIIFhrjjngizGn3o3QSl+SRqZ133Qp3cdDjX2iUD3+q/rpGqHU/ s352QIr+W5oMkKdMrAjewC1gpGp880LoCpJyHAXEdd2g5ennzwRSexPaME4Qbz5U zHawhvr1iqF1mrgC/w5FkEdWxLQoLWullb7CqeS6npc1TGOKFWmExQIy1es7xjE= =NBGb -----END PGP SIGNATURE----- --=-=-=--