--- Begin Message ---
Subject: |
guix system init installs grub.cfg gcroot to host |
Date: |
Thu, 25 Feb 2016 14:56:23 +1100 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
When running 'guix system init', GRUB requires a GC root to be placed in
/var/guix. When building a VM, this GC root is placed in <disk>/var/guix/gcroots
however while building a system on another drive, the GC root is placed on the
host's /var/guix/gcroots , not only overwriting the host's grub.cfg which could
be problematic if GC is run and the host has a different grub.cfg to the system
being inited, but the system being inited lacks the grub.cfg and can run GC and
clear out its GRUB files itself.
'guix system reconfigure' once you're inside the new system fixes this issue for
the new system, but the host system may still have a broken grub.cfg and will
need reconfiguring also.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#22802: guix system init installs grub.cfg gcroot to host |
Date: |
Tue, 08 Mar 2016 11:15:28 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Jookia <address@hidden> skribis:
> On Mon, Mar 07, 2016 at 01:15:38PM +0100, Ludovic Courtès wrote:
>> Jookia <address@hidden> skribis:
>> > When running 'guix system init', GRUB requires a GC root to be placed in
>> > /var/guix. When building a VM, this GC root is placed in
>> > <disk>/var/guix/gcroots
>> > however while building a system on another drive, the GC root is placed on
>> > the
>> > host's /var/guix/gcroots
>>
>> Indeed, good catch!
>>
>> I believe this is fixed with the patch below. Can you confirm?
>
> I can't easily confirm since I don't have a system I can 'init' to anymore,
> and
> I've already fixed this in my set of GRUB patches so it'd also lock me out of
> Libreboot on my actual machine if I did.
Sure. After rereading it, it seemed obviously correct™ so I pushed it
as 16210486e6bb2e7b81e0208e42584b1eed826cd0.
Thanks!
Ludo’.
--- End Message ---