From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: bug#21068: guix system: error: build failed: path `/gnu/store/..-grub.cfg' is not valid Date: Mon, 27 Jul 2015 11:18:49 +0300 Message-ID: <874mkqxbbq.fsf@gmail.com> References: <55A69EEB.3050400@gmail.com> <87y4igw7eq.fsf@gnu.org> <55B4DFCD.1040500@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJdcn-0006AU-Sh for bug-guix@gnu.org; Mon, 27 Jul 2015 04:19:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJdck-0002fK-KM for bug-guix@gnu.org; Mon, 27 Jul 2015 04:19:05 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:58177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJdck-0002ex-Gp for bug-guix@gnu.org; Mon, 27 Jul 2015 04:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZJdcj-0002eN-Qs for bug-guix@gnu.org; Mon, 27 Jul 2015 04:19:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <55B4DFCD.1040500@gmail.com> (Germano Gabbianelli's message of "Sun, 26 Jul 2015 15:25:33 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Germano Gabbianelli Cc: 21068@debbugs.gnu.org Germano Gabbianelli (2015-07-26 16:25 +0300) wrote: > On 16/07/15 15:37, Ludovic Court=C3=A8s wrote: >> This could be due to how you fiddled manually with /gnu/store and >> /var/guix. In general, one should never manually touch these >> directories; instead, one should use =E2=80=98guix gc=E2=80=99 and simil= ar commands. > I did not fiddle with those directory. I only removed them to reinstall > guix. >>> I also trying reinstalling guix by deleting /gnu, /var/guix, and >>> /var/log/guix (and also wiping the partition with rm) >> To be safe, could you start anew again, and report back? >> >> sudo rm -rf /gnu /var/guix >> # reinstall from binary tarball > I did it, for the third time. I always get the same error: > > guix system: error: build failed: path > `/gnu/store/kv217jzyir2wx0lwwxl7ljpwc4fzafpi-grub.cfg' is not valid > > This time I used guix 0.8.3. > >>> (bootloader (grub-configuration (device "/dev/sda9"))) >> There=E2=80=99s a mistake here: it should be =E2=80=9C/dev/sda=E2=80=9D = (say), not =E2=80=9C/dev/sda9=E2=80=9D >> (the latter designates a partition, whereas the former designates a >> disk.) It doesn=E2=80=99t matter here since you passed --no-grub, but i= t would >> otherwise lead to a =E2=80=98grub-install=E2=80=99 failure. > I tried removing that line, but if I do I get an error saying "missing > field initializers (bootloader)". > So I also tried to specify a non existent disk (i.e. /dev/sdb), so it > does not complain about the bootloader options, but I still get the > "path 'grub.cfg' is not valid" error. I have just built your config.scm successfully. (I'm not suru but) it looks like you either have a broken store or some stale files in the partition you want to initialize the system to. Could you try the following from your Lubuntu (without 'sudo'): guix pull guix system build --no-grub /path/to/your/config.scm If the system has been built successfully (it definitely should), make sure your partition is absolutely empty (!) and init the system there: sudo -E guix system init --no-grub /path/to/your/config.scm --=20 Alex