From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timothy Sample Subject: Re: Help with writing custom boot-loader configuration Date: Wed, 05 Jun 2019 09:36:40 -0400 Message-ID: <87muiw6tnb.fsf@ngyro.com> References: <34bfe68c4431240cf1ad05c48ecf3d9ae00be787.camel@disroot.org> <18883b91119efe33ba03ba118449e1cb1f82cfea.camel@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:35179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYW5t-0002RL-GD for help-guix@gnu.org; Wed, 05 Jun 2019 09:36:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYW5s-0006yr-8X for help-guix@gnu.org; Wed, 05 Jun 2019 09:36:45 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:38743) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hYW5s-0006xW-11 for help-guix@gnu.org; Wed, 05 Jun 2019 09:36:44 -0400 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Raghav Gururajan Cc: help-guix@gnu.org Hi Raghav, Raghav Gururajan writes: >>=20 >> My first thought after reading your question was=20 >> .=20 > > Yes, I was looking for a method other than using (const ~#t). Heh. I didn=E2=80=99t see this before. Sorry for sending you code you alr= eady had! >> However, I guess you need something else, but I'm not sure what it is. C= an=20 >> you explain more what you're trying to do? Thanks! > > I was looking for a way to directly alter the behaviour of grub-installer= . The > two of all functions of grub-installer are "grub-install" and "grub-mkcon= fig". > The former install grub binaries on disk and the latter generates grub > configuration file inside root partition under boot directory. I was thin= king if > there is a straight-forward way to make the grub-installer to invoke ONLY= "grub- > mkconfig" and NOT "grub-install"?? I=E2=80=99m not quite sure what you are asking, since Guix does not use =E2=80=9Cgrub-mkconfig=E2=80=9D. It has its own way of generating a GRUB c= onfiguration file. The =E2=80=9C#~(const #t)=E2=80=9D trick is the Guix version of runn= ing =E2=80=9Cgrub-mkconfig=E2=80=9D and not =E2=80=9Cgrub-install=E2=80=9D. Is= it working for you? Is it that you want to use =E2=80=9Cgrub-mkconfig=E2=80=9D instead of Guix= =E2=80=99s normal method? To be honest, it may be possible, but it=E2=80=99s only for the br= ave of heart (or at least for those who can tolerate a lot of annoying difficulties). :) The easiest way to do that would be to install GRUB and run =E2=80=9Cgrub-mkconfig=E2=80=9D manually. -- Tim