From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jelle Licht Subject: Re: Dualbooting with guixsd not handling grub installation Date: Sun, 10 Dec 2017 02:11:54 +0100 Message-ID: References: <55149c20-6f4c-8b37-9b9f-43879f2d038f@uni-bremen.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c08b8d47fb163055ff21af3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNq9z-0002GD-7A for guix-devel@gnu.org; Sat, 09 Dec 2017 20:12:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNq9x-0003Ky-Pc for guix-devel@gnu.org; Sat, 09 Dec 2017 20:12:03 -0500 Received: from mail.fsfe.org ([2001:aa8:ffed::3:102]:45220) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eNq9x-0003Jx-Ei for guix-devel@gnu.org; Sat, 09 Dec 2017 20:12:01 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.fsfe.org (Postfix) with ESMTP id B1C5763BAF9 for ; Sun, 10 Dec 2017 02:11:58 +0100 (CET) Received: from mail.fsfe.org ([127.0.0.1]) by localhost (cavendish.fsfeurope.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 61sUKYU530J9 for ; Sun, 10 Dec 2017 02:11:58 +0100 (CET) Received: by mail-ua0-f173.google.com with SMTP id p33so9801886uag.9 for ; Sat, 09 Dec 2017 17:11:58 -0800 (PST) In-Reply-To: <55149c20-6f4c-8b37-9b9f-43879f2d038f@uni-bremen.de> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Martin Castillo Cc: guix-devel --94eb2c08b8d47fb163055ff21af3 Content-Type: text/plain; charset="UTF-8" 2017-12-10 0:35 GMT+01:00 Martin Castillo : > Hi guixers, > > I want to dualboot into GuixSD. My main os is currently NixOS. > Currently, I don't want to let guixsd control my grub setup. So my > situation is similar to [1]. > > One solution is to use the unreliable chainloading with blocklists by > invoking grub-install --force /dev/sda3 after every guix system > reconfigure config.scm. (The config.scm has sda3 as grub target.) > > The second (and IMHO the right) solution I am aware of is adding the > following in the grub.cfg which is handled by nix: > menuentry "GuixSD - Configloader" { > configfile (hd0,gpt3)/boot/grub/grub.cfg > } > > This way, grub loads the newest grub config file created from GuixSD. > There is only a minor annoyance: > guix system reconfigure config.scm returns non-zero and spits out an > error (because grub-install wants --force to use blocklists). But it > succeeds in everything else, especially in creating a new > /boot/grub/grub.cfg. > The alternative (guix system reconfigure --no-bootloader config.scm) > doesn't update /boot/grub/grub.cfg. > I'd like to have a way to have /boot/grub/grub.cfg updated without > reinstalling grub on the disk/partition and without having a command > return non-zero. > > This could be done by adding a cli argument for reconfigure or allowing > an empty string in (grub-configuration (target "")). > > WDYT? > > Martin Castillo > > > [1]: https://lists.gnu.org/archive/html/guix-devel/2014-12/msg00046.html > -- > GPG: 7FDE 7190 2F73 2C50 236E 403D CC13 48F1 E644 08EC > This seems like a useful change. I am currently running into a similar issue using GuixSD on a laptop /w libreboot, in a way similar to what is done at [2]. Reading your email just now reminded me that living in mediocrity is something that can be changed when you run only/mostly free software :-). Maybe the orphaned patch at [3] can be ad{o,a}pted to address both of these use-cases? - Jelle [2]: https://lists.gnu.org/archive/html/help-guix/2017-04/msg00083.html [3]: https://lists.gnu.org/archive/html/guix-devel/2016-02/msg00116.html --94eb2c08b8d47fb163055ff21af3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2017-12-10 0:35 GMT+01:00 Martin Castillo <castilma@uni-bremen.de= >:
Hi gu= ixers,

I want to dualboot into GuixSD. My main os is currently NixOS.
Currently, I don't want to let guixsd control my grub setup. So my
situation is similar to [1].

One solution is to use the unreliable chainloading with blocklists by
invoking grub-install --force /dev/sda3 after every guix system
reconfigure config.scm. (The config.scm has sda3 as grub target.)

The second (and IMHO the right) solution I am aware of is adding the
following in the grub.cfg which is handled by nix:
=C2=A0 =C2=A0menuentry "GuixSD - Configloader" {
=C2=A0 =C2=A0 =C2=A0configfile (hd0,gpt3)/boot/grub/grub.cfg
=C2=A0 =C2=A0}

This way, grub loads the newest grub config file created from GuixSD.
There is only a minor annoyance:
guix system reconfigure config.scm returns non-zero and spits out an
error (because grub-install wants --force to use blocklists). But it
succeeds in everything else, especially in creating a new
/boot/grub/grub.cfg.
The alternative (guix system reconfigure --no-bootloader config.scm)
doesn't update /boot/grub/grub.cfg.
I'd like to have a way to have /boot/grub/grub.cfg updated without
reinstalling grub on the disk/partition and without having a command
return non-zero.

This could be done by adding a cli argument for reconfigure or allowing
an empty string in (grub-configuration (target "")).

WDYT?

Martin Castillo


[1]: https://lists.gnu.org/archiv= e/html/guix-devel/2014-12/msg00046.html
--
GPG: 7FDE 7190 2F73 2C50 236E=C2=A0 403D CC13 48F1 E644 08EC

This seems like a useful change. I am c= urrently running into a similar issue
using GuixSD on a laptop /w= libreboot, in a way similar to what is done at [2].
Reading= your email just now reminded me that living in mediocrity is
something that can be changed when you run only/mostly free software :-).=

Maybe the orphaned patch at [3] can be ad{o,a= }pted to address both of these
use-cases?

=
- Jelle


--94eb2c08b8d47fb163055ff21af3--