unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: 白い熊@相撲道 <guix-devel_gnu.org@sumou.com>
Cc: guix-devel@gnu.org
Subject: Re: Libreboot error: /boot/grub/i386-coreboot files not found
Date: Fri, 13 Mar 2015 18:27:13 -0400	[thread overview]
Message-ID: <87a8zgy1mm.fsf@netris.org> (raw)
In-Reply-To: <274744d0e96e11d4d745094b2be220c8@hcoop.net> ("白い熊@相撲道"'s message of "Fri, 13 Mar 2015 12:20:16 +0100")

白い熊@相撲道 <guix-devel_gnu.org@sumou.com> writes:

> I've installed and am running GuixSD on the Gluglug X200.

Excellent!  I'm running GuixSD on a Gluglug X60 :)

> On boot, Libreboot comes up with its GRUB-like menu, where I select
> "Search for GRUB configuration on internal storage". It then finds the
> GuixSD partition with /boot/grub and you can boot it usinr "Load
> Config from (ahci0,msdosX)".
>
> This then however always reports:
>
> error: file `/boot/grub/i386-coreboot/vbe.mod' not found.
> error: file `/boot/grub/i386-coreboot/vga.mod' not found.
> error: file `/boot/grub/i386-coreboot/gfxterm.mod' not found.
> Press any key to continue...
>
> You can then hit a key and it continues normally, loads the GRUB menu
> and you can boot. So it's more of a nuisance than a crippling
> error. I'd like to get rid of it however.
>
> Of course, there is no i386-coreboot in /boot/grub/, however
> symlinking i386-pc to it, or copying the dir i386-pc to i386-coreboot,
> has no effect. The error still comes up.
>
> How can this be fixed?

The plan is to modify Guix to create a /boot/grub/libreboot_grub.cfg
(alongside grub.cfg) that omits everything except for the menu entries
and perhaps also the "set default=0" and "set timeout=1".

With /boot/grub/libreboot_grub.cfg in place, the default GRUB menu entry
in Libreboot will automatically boot GuixSD as long as it's located on
one of the first few partitions of the first disk.

On my own system, I simply made /boot/grub/libreboot_grub.cfg a symlink
to grub.cfg, and ignore the warnings :)

The place to fix this properly is in gnu/system/grub.scm and
gnu/system.scm.  I guess we should add a keyword argument to
'grub-configuration-file' that specifies whether or not to include
#$sugar in the output, and then modify system.scm to create both files.

For now, an easy hack for Libreboot users would be to simply remove the
line in 'grub-configuration-file' that reads "#$sugar", and to create
the /boot/grub/libreboot_grub.cfg --> grub.cfg symlink.

      Mark

  reply	other threads:[~2015-03-13 22:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-13 11:20 Libreboot error: /boot/grub/i386-coreboot files not found 白い熊@相撲道
2015-03-13 22:27 ` Mark H Weaver [this message]
2015-03-13 22:34   ` Mark H Weaver

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87a8zgy1mm.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=guix-devel@gnu.org \
    --cc=guix-devel_gnu.org@sumou.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).