From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: How to use custom grub? Date: Mon, 07 Nov 2016 11:36:51 +0000 Message-ID: <87inrz8qss.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> <878tsy6r2k.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <20161106004117.1d08b79b@scratchpost.org> <20161107114833.2c1453ca@scratchpost.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]:46339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3iEU-00058t-CI for guix-devel@gnu.org; Mon, 07 Nov 2016 06:36:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3iEQ-0003zj-CJ for guix-devel@gnu.org; Mon, 07 Nov 2016 06:36:58 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:55993) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3iEQ-0003zf-7r for guix-devel@gnu.org; Mon, 07 Nov 2016 06:36:54 -0500 In-Reply-To: <20161107114833.2c1453ca@scratchpost.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: Danny Milosavljevic Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Danny Milosavljevic writes: >> Hmm, did you mean (package->drivation (grub-configuration-grub (operating-system-bootloader os))) ? Otherwise it can't work. > > Fixing typo: > > Hmm, did you mean (package->derivation (grub-configuration-grub (operating-system-bootloader os))) ? Otherwise it can't work. > > It gives you a derivation which you can use derivation->output-path > (which returns a file path) on and then invoke the executable or > whatever. That's it! This makes it pick up (bootloader (grub-configuration (grub grub-efi))) from my config.scm: making '/gnu/store/kgk9rrawq9fxh1g2j6121gl3lcz47395-system' the current system... Installing for x86_64-efi platform. Installation finished. No error reported. Even though I'm now working on multi-platform grub, I think we should have this anyway so that the "grub" argument works as expected. WDYT? Also, since this works, maybe it's better to have grub-efi as a separate package, as it will add ~8MiB to the grub closure (the x86_64-efi platform directory is 6.1MiB; efibootmgr adds another ~2MiB). Thanks! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYIGdUAAoJEKKgbfKjOlT6rzAH/jvLNHiCJwPMmQEHsJEqz6zg yMPA0m/qgqqtVEjrgsDPcwjwlKu7uMilSsiDxPmAO8qpiw/AUBu3enabP/8NlpJt XB10+1yhBzFOw4p8J0jTxuXZKUf+t+zqnsQ772dJ4O0kaQAB3x9MJSvzLloOIkIe EhzYX3kgAWqO292qKug78waJpXtnh2tnX8JOSmC7xXXh3G6dQn33n/571dQEYnB+ N/blFnD2pFub842z2MeGaiYfQxoGeSFW1wZoTdqZFDqlUW/jfJFtCWyybCuHtVfx VVDyhIknufyqYqMhnAcKr9r7Y2qcnEvKwIui+6SwEnrI8uu6BRYGVXl84tpNQb0= =vd8v -----END PGP SIGNATURE----- --=-=-=--