unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Iannetta Paul <paul.iannetta@ens-lyon.fr>
To: help-guix@gnu.org
Subject: LiveUSB stuck at GRUB welcome screen
Date: Fri, 20 May 2022 07:54:28 +0200	[thread overview]
Message-ID: <cbfe0a92237d0b7a6e6672022253eb17@ens-lyon.fr> (raw)

Hi Guix,

tl;dr

I seem unable to make GRUB work and would like to know whether it is 
possible to generate an image that would use extlinux/syslinux instead.

---

I am trying to install guix on a pretty old box (an HP Pavilion dv6000 
series from circa 2010) with no efi support. I've been running funtoo on 
it for the last 5 years or so and everything is okay, the bootloader is 
GRUB.

At first, I tried to surgically snipe (by overwriting) the `grub.cfg` on 
the iso (directly with dd and the offset of grub.cfg on the iso) to not 
use gfxmode, to no avail. The file was properly overwritten but it 
seemed to not be sufficient.

Secondly, I installed the package manager guix on funtoo and tried to 
create an image myself.  That proved more tricky than I expected because 
since guix is running on a foreign distro there is no initial system 
configuration... and doing `guix system image -t iso9660 install.scm` 
fails by telling you that there is no file `install.scm` even though the 
file is in the current directory.

 From that point, I looked up (with `locate`) the location of 
`install.scm` files on my system, and there was a couple in 
/gnu/store/xxx-guix/.../gnu/system/, I used the one which looks like 
this ( https://github.com/lfam/guix/blob/master/gnu/system/install.scm 
). After some fiddling (some deprecated syntax (targets instead of 
target) and missing fields (missing description here [1]), the part with 
the loopback required an `addresses` field, etc.) It worked to create an 
image, but it was still grub.

I tried replacing `grub-bootloader` on line 455 by `extlinux-bootloader` 
and added `#:use-module (gnu bootloader extlinux)` at the top of the 
file. I could generate an image from that file but as before the 
bootloader was still grub.

At that point, I tried the various options of grub to modify the gfx 
resolution (I suspect that grub fails to find the correct resolution of 
my screen and stops at the welcome screen), it worked and was reflected 
in the `grub.cfg` of the image. Nevertheless, the boot did not proceed 
any further :(

I would really like to try building an image with syslinux/extlinux to 
see whether I can go further but I am currently stuck now. I've read 
this page [2] but it is still unclear. The generation with the 
`pine64.scm` file works fine but not with my custom file (guix system 
complains it does not exist, and the most surprising is that if I copy 
past the content of my custom file into the `pine64.scm`, the 
`pine64.scm` file is reported missing...)

The last solution would be to overwrite my current distribution by guix 
and replace the init system by shepherd.

[1]: 
https://github.com/lfam/guix/blob/master/gnu/system/install.scm#L251

[2]: 
https://guix.gnu.org/cookbook/en/guix-cookbook.html#Guix-System-Image-API

Regards,
Paul

-- 
Iannetta Paul
ENS de Lyon


             reply	other threads:[~2022-05-20 13:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-20  5:54 Iannetta Paul [this message]
     [not found] <725080449.39520.1653025615730.ref@mail.yahoo.com>
2022-05-20  5:46 ` Paul Iannetta via

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=cbfe0a92237d0b7a6e6672022253eb17@ens-lyon.fr \
    --to=paul.iannetta@ens-lyon.fr \
    --cc=help-guix@gnu.org \
    --subject='Re: LiveUSB stuck at GRUB welcome screen' \
    /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

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).