GNU bug report logs - #21068
guix system: error: build failed: path `/gnu/store/..-grub.cfg' is not valid

Previous Next

Package: guix;

Reported by: Germano Gabbianelli <tyrion.mx <at> gmail.com>

Date: Wed, 15 Jul 2015 18:28:01 UTC

Severity: normal

Merged with 21224

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: tracker <at> debbugs.gnu.org
Subject: bug#21068: closed (guix system: error: build failed: path
 `/gnu/store/..-grub.cfg' is not valid)
Date: Mon, 02 Nov 2015 22:55:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 02 Nov 2015 23:54:23 +0100
with message-id <87611kui5c.fsf <at> gnu.org>
and subject line Re: bug#21224: guix system init --no-grub doesn't work
has caused the debbugs.gnu.org bug report #21068,
regarding guix system: error: build failed: path `/gnu/store/..-grub.cfg' is not valid
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
21068: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21068
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Germano Gabbianelli <tyrion.mx <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: guix system: error: build failed: path `/gnu/store/..-grub.cfg' is
 not valid
Date: Wed, 15 Jul 2015 19:56:59 +0200
[Message part 3 (text/plain, inline)]
Hello,
I am using lubuntu 14.04 and I installed the binary version of guix 
following the documentation ( 
https://www.gnu.org/software/guix/manual/html_node/Binary-Installation.html#Binary-Installation 
)

Then I ran `guix pull`, made a new partition (ext4) and tried to run 
`guix system init` on it:

$ sudo guix system init /mnt/etc/config.scm /mnt

The config.scm is attached. The interesting part is that I specified to 
install grub on /dev/sda9 ( the root partition for guix) instead of 
/dev/sda. The command failed saying that "Embedding is not possible" ( 
here details: https://paste.debian.net/282642/ ).

Following the advice got from Mark on the IRC channel I tried specifing 
the --no-grub flag, but got an other error:

tyrion ~$ sudo guix system init --no-grub /mnt/etc/config.scm /mnt
[sudo] password for tyrion:
warning: failed to install locale: Invalid argument
/gnu/store/q32xg8nmyjwrl5yc18hj7ay5h4rgzkgy-system

initializing operating system under '/mnt'...
guix system: error: build failed: path 
`/gnu/store/hill6gywff6p2c3h1zbc7h5xj0cr4yn2-grub.cfg' is not valid

I also trying reinstalling guix by deleting /gnu, /var/guix, and 
/var/log/guix (and also wiping the partition with rm)
and following again the documentation. Tried again the last command and 
got the same error again.
[config.scm (text/x-scheme, attachment)]
[Message part 5 (message/rfc822, inline)]
From: ludo <at> gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw <at> netris.org>
Cc: 21068-done <at> debbugs.gnu.org, 21224-done <at> debbugs.gnu.org
Subject: Re: bug#21224: guix system init --no-grub doesn't work
Date: Mon, 02 Nov 2015 23:54:23 +0100
Mark H Weaver <mhw <at> netris.org> skribis:

> I ran into the same problem while porting GuixSD to MIPS, before I had
> GRUB working.
>
> The problem here is that the method for copying the necessary store
> items to the target directory is to copy grub.cfg and its transitive
> closure, using (maybe-copy grub.cfg).
>
> However, if --no-grub is specified, then grub.cfg is not built.
>
> The preliminary approach I used successfully was to build and install
> grub.cfg even if --no-grub is specified, although 'grub-install' is not
> run in that case.  Here's the patch I used:
>
> diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
> index 45f5982..6ec1f29 100644
> --- a/guix/scripts/system.scm
> +++ b/guix/scripts/system.scm
> @@ -331,8 +331,10 @@ boot directly to the kernel or to the bootloader."
>                                               (if (eq? 'init action)
>                                                   '()
>                                                   (previous-grub-entries))))
> -       (drvs   -> (if (and grub? (memq action '(init reconfigure)))
> -                      (list sys grub grub.cfg)
> +       (drvs   -> (if (memq action '(init reconfigure))
> +                      (if grub?
> +                          (list sys grub.cfg grub)
> +                          (list sys grub.cfg))
>                        (list sys)))
>         (%         (maybe-build drvs #:dry-run? dry-run?
>                                 #:use-substitutes? use-substitutes?)))

Applied in a704361, thanks!

Ludo’.


This bug report was last modified 9 years and 204 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.