all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: hub.lombard@free.fr
Cc: Help Guix <help-guix@gnu.org>, Joshua Branson <jbranso@dismail.de>
Subject: Re: Supergrub2disk helped me to have the choice at startup
Date: Sat, 26 Jan 2019 20:13:38 -0500	[thread overview]
Message-ID: <877eeqdhrx.fsf@gmail.com> (raw)
In-Reply-To: <394932775.-1582566730.1548067261565.JavaMail.root@zimbra49-e8.priv.proxad.net> (hub lombard's message of "Mon, 21 Jan 2019 11:41:01 +0100 (CET)")

Hello, and sorry for the delayed answer!

hub.lombard@free.fr writes:

> Hello Guix people :) 
>
> Thanks again Josuha and Maxim for your answers \o
>
> I realize that my last post shows a certain lack of knowledge of the subject from me but I have the impression of having progressed a little.
>
> I have tried to inser menu-entry into (or after?) (bootloader but I have obtained several errors...  
> "unbound variable", "invalid field initialized"... etc.
>
> Here is how far I have been able to explore, without success for now:
>
> root@gnu ~# guix system reconfigure /etc/config.scm
> /etc/config.scm:9:0: error: extraneous file initializers (menu-entries)

It seems to be a problem caused by unbalanced parenthesises. See below
for a hint or two.

> Excerpt :
>
> ----------------------------------------------------------------
> ;; Operating system configuration for a full
> ;; "desktop" environment with gnome and
> ;; gnome-shell
>
> (use-modules (gnu) (gnu system nss))
> (use-service-modules desktop networking ssh)
> (use-package-modules bootloaders certs gnome screen ssh)              
>
> (operating-system
>   (host-name "gnu")
>   (timezone "Europe/Paris")
>   (locale "en_US.utf8")
>
> ;; Assuming /dev/sda is the target hard disk, and "my-root" is
> ;; the label of the target root file system, and /dev/sda6 
> ;; the target partition for the GuixSD-0.16
> ;; installation. 
> (bootloader (bootloader-configuration
>               (bootloader grub-bootloader)
>               (target "/dev/sda")))
                                    ^
                                    this parenthesis is closing the
                                    bootloader field. This is wrong as
                                    the menu-entries that follow should
                                    be defined for the bootloader-configuration.

I can suggest Emacs + paredit for editing Lisp-based languages such as
Scheme. The learning curve is steep, but worth it IMO.

>             (menu-entries
>               (list
>                 (menu-entry
>                  (label "Debian GNU/Linux")
>                  (linux "/boot/old/vminuz-4.19.0-1-amd64")
>                  (linux-arguments '("root=/dev/sda1")
>                  (initrd "/boot/old/initrd.img-4.19.0-1-amd64")))))

There seems to be another parenthesis problem here, where the initrd
field is nested in the linux-arguments field.

>
> (file-systems (cons (file-system
>                       (device "my-root")
>                       (title 'label)
>                       (mount-point "/")
>                       (type "ext4"))
>                      %base-file-systems))
> ------------------------------------------------------------------------
>
> root@gnu ~# guix system reconfigure /etc/config.scm
> /etc/config.scm:9:0: error: extraneous file initializers (menu-entries)
>
> I have consulted a lot of documentation and examples but several things still escape me :)
>
> Do you know where I should explore?
>
> Hubert, an end user of GuixSD enthusiastic

I remember the feeling of discovering GuixSD -- I too was enthused :-)

With a little patience you'll find a great reward.

Good luck!

Maxim

      reply	other threads:[~2019-01-27  1:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <802417500.-1621294835.1547755891168.JavaMail.root@zimbra49-e8.priv.proxad.net>
2019-01-17 20:12 ` Supergrub2disk helped me to have the choice at startup hub.lombard
2019-01-19 16:14   ` Joshua Branson
2019-01-20  9:02     ` hub.lombard
2019-01-19 16:53   ` Maxim Cournoyer
2019-01-20  9:10     ` hub.lombard
2019-01-21 10:41       ` hub.lombard
2019-01-27  1:13         ` Maxim Cournoyer [this message]

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=877eeqdhrx.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=hub.lombard@free.fr \
    --cc=jbranso@dismail.de \
    /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.