From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: bug#25444: 'guix system init' on GuixSD w/ RAID target produces "guix system: error: failed to register" Date: Wed, 18 Jan 2017 20:44:59 -0500 Message-ID: <861svzj010.fsf@gmail.com> References: <868tqeqn4a.fsf@gmail.com> <8737glpxgm.fsf@gnu.org> <86r345v9gh.fsf@gmail.com> <87fukkhy9g.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cU1gv-0007Pc-MQ for bug-guix@gnu.org; Wed, 18 Jan 2017 20:39:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cU1gs-0002bF-KB for bug-guix@gnu.org; Wed, 18 Jan 2017 20:39:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:36895) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cU1gs-0002bB-GL for bug-guix@gnu.org; Wed, 18 Jan 2017 20:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cU1gs-00049S-7v for bug-guix@gnu.org; Wed, 18 Jan 2017 20:39:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87fukkhy9g.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 25444@debbugs.gnu.org On 01/15/2017 at 20:19 Ludovic Courtès writes: > myglc2 skribis: > >> On 01/14/2017 at 14:44 Ludovic Courtès 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 directory >>> >>> 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 ‘guix-register’ 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 reproduced >> 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/1k2swlkbpf44d5fzgvrp5znafhw90xh7-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’t 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 ... YEAH!! Happy camper George ;-)