From: hub.lombard@free.fr
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>,
Joshua Branson <jbranso@dismail.de>
Cc: Help Guix <help-guix@gnu.org>
Subject: Re: Supergrub2disk helped me to have the choice at startup
Date: Mon, 21 Jan 2019 11:41:01 +0100 (CET) [thread overview]
Message-ID: <394932775.-1582566730.1548067261565.JavaMail.root@zimbra49-e8.priv.proxad.net> (raw)
In-Reply-To: <1718730635.-1594378836.1547975413664.JavaMail.root@zimbra49-e8.priv.proxad.net>
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)
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")))
(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")))))
(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
----- Mail original -----
De: "hub lombard" <hub.lombard@free.fr>
À: "Maxim Cournoyer" <maxim.cournoyer@gmail.com>
Cc: "Help Guix" <help-guix@gnu.org>
Envoyé: Dimanche 20 Janvier 2019 10:10:13
Objet: Re: Supergrub2disk helped me to have the choice at startup
Hello Maxim :)
Thank you for your answer, maybe I will make a test like :
;; 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 certs gnome screen ssh)
(menu-entries ;To obtain the relevant informations about
(list ;label, linux, linux-arguments and initrd
(menu-entry ;I had a look to the grub.cfg's Debian.
(label "Debian GNU/Linux") ;What about the '/old' reposiory?
(linux "/boot/old/vmlinuz-4.19.0-1-amd64") ;Like the exemple given by Joshua and Maxim,
(linux-arguments '("root=/dev/sda1")) ;I think to put it in the same place.
(initrd "/boot/old/initrd.img-4.19.0-1-amd64"))) ;Not tested yet
(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's installation.
(bootloader (grub-configuration (target "/dev/sda")))
(file-systems (cons (file-system
(device "my-root")
(title 'label)
(mount-point "/")
(type "ext4"))
%base-file-systems))
----- Mail original -----
De: "Maxim Cournoyer" <maxim.cournoyer@gmail.com>
À: "hub lombard" <hub.lombard@free.fr>
Cc: "Help Guix" <help-guix@gnu.org>
Envoyé: Samedi 19 Janvier 2019 17:53:16
Objet: Re: Supergrub2disk helped me to have the choice at startup
Hello Hubert!
hub.lombard@free.fr writes:
> Hi Guix :)
>
> A few days ago, I managed to install GuixSD 0.16 next to debian testing on a Packard Bell 'EasyNote TE' laptop.
> At reboot, Grub only offers GuixSD.
> To have the choice at startup, I used the 'supergrub2disk' that I downloaded and put on a USB key, positioned as the first boot device.
> SuperGRUB2disk gives me the choice between GuixSD and debian, and I can start either one without any problem.
>
> For now, I keep the USB key inserted in the computer and everything is fine, having nevertheless planned to address the problem of the restoration of GRUB.
>
> Would someone have a track that would enlighten me a bit?
In GuixSD, the way to handle dual (or more) boot is to define a list of
menu-entries for the bootloader configuration in your OS config. It's
documented here:
https://www.gnu.org/software/guix/manual/en/html_node/Bootloader-Configuration.html.
For an actual example, this post might give you some idea:
https://lists.gnu.org/archive/html/help-guix/2017-04/msg00045.html.
Good luck!
Maxim
next prev parent reply other threads:[~2019-01-21 10:41 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 [this message]
2019-01-27 1:13 ` Maxim Cournoyer
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=394932775.-1582566730.1548067261565.JavaMail.root@zimbra49-e8.priv.proxad.net \
--to=hub.lombard@free.fr \
--cc=help-guix@gnu.org \
--cc=jbranso@dismail.de \
--cc=maxim.cournoyer@gmail.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.