From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: How to use custom grub? Date: Thu, 03 Nov 2016 20:47:24 +0000 Message-ID: <87bmxw8f4z.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> <20161103175051.1588de9f@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]:35117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Ov5-0006Ah-Bi for guix-devel@gnu.org; Thu, 03 Nov 2016 16:47:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Ov0-0003oX-6U for guix-devel@gnu.org; Thu, 03 Nov 2016 16:47:31 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:59540) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2Ov0-0003oQ-2w for guix-devel@gnu.org; Thu, 03 Nov 2016 16:47:26 -0400 In-Reply-To: <20161103175051.1588de9f@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: > Hi Marius, > > yeah, I've noticed that problem, too. > > David and I got some steps in the direction of fixing it (for U-Boot support): > > The U-Boot support patch generalized this, see my E-Mail to this list, subject "[WIP PATCH] gnu: add U-Boot support to operating-system" on 09 Sep 2016 at 20:09. > > The relevant part is: > - guix/scripts/system.scm: The "install" routine is changed to also accept the bootloader package as argument (variable is called "grub" to keep the number of trivial patch chunks low). > - guix/scripts/system.scm: The new "install-bootloader*" routine is introduced instead of "install-grub*" to also accept the bootloader package as argument. > > If you want you can cherry-pick these changes. I've reconfigured and booted with that patch. It works. Thanks a lot for the fast reply! That patch was really helpful. I'll try to extract the parts that are relevant for grub-efi support while keeping other bootloaders in mind. Hoping to largely piggy-back on the regular grub stuff for grub-efi, as it only needs two extra lines in grub.cfg and adding "--bootloader-id=GNU" "--efi-directory=" to the grub-install command. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYG6JcAAoJEKKgbfKjOlT6EVcH/ikz7IOc5QCnq2MTe4C/Eb07 ZSTcJpKZd6fsdsO66dkU0E30TOlHtCUGE9VMEJ0Z5ISrktOB1UqKP1Clk2cSyZSX nAqwsM5WGahOB4Y3cGhjN18wlUrptXAqqoVG6czCU1Xeil3P7BWQcqBsl9qJasu7 PCB3G48x6a2OMIBGyzXAI2VxMI6RnozoxdY5uWqUT5587eez5mNi5QbcupNI9+Yz VFVCzVjwl+mLcC2H+vgS6NYStG97HcSpxPlz9mXV2DeLTcx3I9ulLp0Yrl45Q7ah qXZR4oCmA6KoovcOoQZAp+jxauuLH9abGTL/O6VAClngZftb4n4+T9GGsKHebmI= =GrLu -----END PGP SIGNATURE----- --=-=-=--