help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Supergrub2disk helped me to have the choice at startup


From: Maxim Cournoyer
Subject: Re: Supergrub2disk helped me to have the choice at startup
Date: Sat, 26 Jan 2019 20:13:38 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hello, and sorry for the delayed answer!

address@hidden 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:
>
> address@hidden ~# 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))
> ------------------------------------------------------------------------
>
> address@hidden ~# 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 via email to

[Prev in Thread] Current Thread [Next in Thread]