all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Martin Castillo <castilma@uni-bremen.de>
To: "Ludovic Courtès" <ludo@gnu.org>,
	"Mathieu Othacehe" <m.othacehe@gmail.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Dualbooting with guixsd not handling grub installation
Date: Thu, 14 Dec 2017 03:27:46 +0100	[thread overview]
Message-ID: <1e2b47c5-6c2d-02c9-16bf-e633317d09c5@uni-bremen.de> (raw)
In-Reply-To: <87bmj54n8z.fsf@gnu.org>

Hi

On 11.12.2017 10:39, Ludovic Courtès wrote:
> Hello,
> 
> Mathieu Othacehe <m.othacehe@gmail.com> skribis:
> 
>>>> This could be done by adding a cli argument for reconfigure or allowing
>>>> an empty string in (grub-configuration (target "")).
>>>>
>>>> WDYT?
>>>>
>>
>> An already available option would be to override the grub-installer like
>> this :
>>
>> (define no-op-installer
>>   #~(lambda (bootloader device mount)
>>       (display "no op")))
>>
>> (bootloader (bootloader
>>              (inherit grub-bootloader)
>>              (installer no-op-installer))
> 
> We could even define and document it as ‘no-bootloader’ or something
> like that.
> 
>> I admit this is not ideal, so I would propose two options :
>>
>> * Allow for target field to be #f and do not call the installer when
>> this happends.
> 
> Sounds reasonable.

+1

> 
>> * Precise the --no-bootloader parameter of guix system to deal with
>> multiple cases, for example :
>>
>> --bootloader=[default|no-config-file|no-install|...]
>>
>> WDYT ?
> 
> What would it do in the ‘no-config-file’ case?  Run ‘grub-install’ (or
> similar) without regenerating ‘grub.cfg’?  Does that make sense?

I realised a third option for dualbooting:
menuentry "GuixSD - grub core.img loader" {
  search --set root --label guix-root --hint hd0,gpt3
  multiboot /boot/grub/i386-pc/core.img
}

This loads the guixsd grub image from the filesystem instead of relying
on blocklists. If someone uses different bootloader for the main system
and for guixsd, where the later is multiboot compatible, this would be a
good way to do it. no-install should not forget to create core.img and
other files besides grub.cfg.
I think useful is 'default' (install new bootconfig or, if target is #f,
create it only), 'no-install' (like default with target == #f) and 'no'
(do nothing related to booting).

Martin

-- 
GPG: 7FDE 7190 2F73 2C50 236E  403D CC13 48F1 E644 08EC

  reply	other threads:[~2017-12-14  2:27 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
2017-12-10 11:41   ` Mathieu Othacehe
2017-12-11  9:39     ` Ludovic Courtès
2017-12-14  2:27       ` Martin Castillo [this message]
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=1e2b47c5-6c2d-02c9-16bf-e633317d09c5@uni-bremen.de \
    --to=castilma@uni-bremen.de \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=m.othacehe@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.