all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: Marius Bakke <mbakke@fastmail.com>
Cc: guix-devel@gnu.org
Subject: Re: How to use custom grub?
Date: Thu, 3 Nov 2016 17:50:51 +0100	[thread overview]
Message-ID: <20161103175051.1588de9f@scratchpost.org> (raw)
In-Reply-To: <8737j85yek.fsf@duckhunt.i-did-not-set--mail-host-address--so-tickle-me>

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.

I'm not sure how the build side picks up which package's grub-install is invoked (gnu/build/install.scm just invokes "grub-install" without any further path specification).

I've asked about it before (multiple times now) and apparently nobody knows. If someone finds out, gnu/build/install.scm install-grub after the patch accepts the grub-name and could just invoke grub-install correctly. I *think* it's fine to just (string-append grub-name "/bin/grub-install") or something - but that's something I don't want to guess.

David knows more about the VM side - the patch also addresses this by carring around the bootloader als variable "grub" (which is not necessarily actually grub).

I hope that helps.

  reply	other threads:[~2016-11-03 16:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-03 16:19 How to use custom grub? Marius Bakke
2016-11-03 16:50 ` Danny Milosavljevic [this message]
2016-11-03 20:47   ` Marius Bakke
2016-11-03 20:47   ` Marius Bakke
2016-11-04 13:24 ` Ludovic Courtès
2016-11-05 12:37   ` Marius Bakke
2016-11-05 23:41     ` Danny Milosavljevic
2016-11-07 10:48       ` Danny Milosavljevic
2016-11-07 11:36         ` Marius Bakke
2016-11-07 15:05           ` Danny Milosavljevic
2016-11-07 15:50             ` Marius Bakke
2016-11-07 22:26               ` Danny Milosavljevic
2016-11-08 12:40               ` Ludovic Courtès
2016-11-08 14:36                 ` Marius Bakke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161103175051.1588de9f@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    --cc=mbakke@fastmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.