all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jelle Licht <jlicht@fsfe.org>
To: Martin Castillo <castilma@uni-bremen.de>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Dualbooting with guixsd not handling grub installation
Date: Sun, 10 Dec 2017 02:11:54 +0100	[thread overview]
Message-ID: <CAPsKtfK=zAm_WxQeCk5O3zS67NgEH4KCDrXVexgzHBoi20iKoA@mail.gmail.com> (raw)
In-Reply-To: <55149c20-6f4c-8b37-9b9f-43879f2d038f@uni-bremen.de>

[-- Attachment #1: Type: text/plain, Size: 2131 bytes --]

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

> 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

[-- Attachment #2: Type: text/html, Size: 3147 bytes --]

  reply	other threads:[~2017-12-10  1:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-09 23:35 Dualbooting with guixsd not handling grub installation Martin Castillo
2017-12-10  1:11 ` Jelle Licht [this message]
2017-12-10 11:41   ` Mathieu Othacehe
2017-12-11  9:39     ` Ludovic Courtès
2017-12-14  2:27       ` Martin Castillo
2017-12-15 14:53         ` Ludovic Courtès
2017-12-17 12:29           ` Oleg Pykhalov
2017-12-18  9:21             ` Ludovic Courtès
2018-02-01  6:14               ` Oleg Pykhalov
2018-02-01  8:06                 ` Félicien Pillot
2018-02-02 22:34                   ` Oleg Pykhalov
2018-02-05 13:15                 ` Ludovic Courtès
2018-02-06 12:25                   ` Oleg Pykhalov

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='CAPsKtfK=zAm_WxQeCk5O3zS67NgEH4KCDrXVexgzHBoi20iKoA@mail.gmail.com' \
    --to=jlicht@fsfe.org \
    --cc=castilma@uni-bremen.de \
    --cc=guix-devel@gnu.org \
    /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.