From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#25444: 'guix system init' on GuixSD w/ RAID target produces "guix system: error: failed to register" Date: Thu, 19 Jan 2017 12:31:40 +0100 Message-ID: <87bmv31e1v.fsf@gnu.org> References: <868tqeqn4a.fsf@gmail.com> <8737glpxgm.fsf@gnu.org> <86r345v9gh.fsf@gmail.com> <87fukkhy9g.fsf@gnu.org> <861svzj010.fsf@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]:35738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUAwn-0000C9-9o for bug-guix@gnu.org; Thu, 19 Jan 2017 06:32:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUAwk-0008Rs-64 for bug-guix@gnu.org; Thu, 19 Jan 2017 06:32:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:37029) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cUAwk-0008Rh-3b for bug-guix@gnu.org; Thu, 19 Jan 2017 06:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cUAwj-0004oC-Tr for bug-guix@gnu.org; Thu, 19 Jan 2017 06:32:01 -0500 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <861svzj010.fsf@gmail.com> (myglc2@gmail.com's message of "Wed, 18 Jan 2017 20:44:59 -0500") 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" To: myglc2 Cc: 25444-done@debbugs.gnu.org myglc2 skribis: > On 01/15/2017 at 20:19 Ludovic Court=C3=A8s writes: > >> myglc2 skribis: >> >>> On 01/14/2017 at 14:44 Ludovic Court=C3=A8s writes: >>> >>>> Hi, >>>> >>>> myglc2 skribis: >>>> >>>>> root@g1 ~# guix system init system/g1.00.scm /mnt/md0 >>>>> [...] >>>>> initializing operating system under '/mnt/md0'... >>>>> copying '/gnu/store/0m0clxj69xrxb76kyh3ral8lkfb0vx8c-linux-libre-= 4.9.2'... >>>>> In execvp of /usr/local/sbin/guix-register: No such file or direc= tory >>>> >>>> The crux of the problem is this last line. It looks like the Guix >>>> installation is broken here. >>>> >>>> Could you check what happened to this =E2=80=98guix-register=E2=80=99 = command? >>> >>> Thanks. I did a fresh guix pull and looked for guix-register. I couldn't >>> find it my PATH or in guix-latest. But I did find it in the globally >>> installed guix package. >>> >>> Then, just to be sure things hadn't magically fixed themselves, I repro= duced >>> the crime ;-) >> >> [...] >> >>> copying '/gnu/store/1k2swlkbpf44d5fzgvrp5znafhw90xh7-grub-image.png'... >>> In execvp of /usr/local/sbin/guix-register: No such file or directory >>> guix system: error: failed to register '/gnu/store/1k2swlkbpf44d5fzgvrp= 5znafhw90xh7-grub-image.png' under '/mnt/md0' >> >> The problem is that somehow Guix is configured to look for >> /usr/local/sbin/guix-register (this location comes from >> guix/config.scm), but that file doesn=E2=80=99t exist. >> >> So you need to make /usr/local/sbin/guix-register a symlink to the right >> thing, or somehow fix the installation. > > I was running guix built from Git checkout w/ clean working tree so I > don't know how my system got out of whack. The symlink approach worked > and the new system on new disks has ... > > which guix-register > /run/current-system/profile/sbin/guix-register Good, thanks for letting me know! Ludo=E2=80=99.