[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dualbooting with guixsd not handling grub installation
From: |
Ludovic Courtès |
Subject: |
Re: Dualbooting with guixsd not handling grub installation |
Date: |
Mon, 11 Dec 2017 10:39:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello,
Mathieu Othacehe <address@hidden> 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.
> * 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?
Thanks,
Ludo’.