From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Nicola Barbato Subject: bug#30370: guix system init can't find guix-register Date: Thu, 08 Feb 2018 16:59:36 +0100 Message-ID: <87tvursc9j.fsf@GlaDOS.home> References: <87po5icam9.fsf@GlaDOS.home> <87shabvbdb.fsf@gnu.org> 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]:58909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejocO-00038J-Qk for bug-guix@gnu.org; Thu, 08 Feb 2018 11:00:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejocF-000172-CZ for bug-guix@gnu.org; Thu, 08 Feb 2018 11:00:12 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:54554) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejocF-00016X-7Y for bug-guix@gnu.org; Thu, 08 Feb 2018 11:00:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ejocE-0005fm-Ss for bug-guix@gnu.org; Thu, 08 Feb 2018 11:00:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87shabvbdb.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 08 Feb 2018 14:50:40 +0100") 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: 30370@debbugs.gnu.org Hello Ludo, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hi Diego, > > Diego Nicola Barbato skribis: > >> I tried to install GuixSD on a loop device (/dev/loop1) whith its main >> partition mounted under /mnt like this: >> >> $ guix system init /mnt/etc/config.scm /mnt The above line should actually be: $ sudo guix system init /mnt/etc/config.scm /mnt >> This failed with the following error message: >> >> Betriebssystem unter =C2=BB/mnt=C2=AB wird initialisiert =E2=80=A6 >> In execvp of /gnu/store/d4wwx93gqizx132zjk7h1ir7rzph0pig-guix-0.12.0-10.= ba2260d/sbin/guix-register: Datei oder Verzeichnis nicht gefunden >> copying to '/mnt'... >> guix system: error: fport_write: Daten=C3=BCbergabe unterbrochen (broken= pipe) > > I suppose you=E2=80=99re running this in a chroot, right? How did you po= pulate > that chroot? Could it be that it misses some store items? I am not running this in a chroot. I am afraid the explanation of what I was doing was a bit unclear. I was able to reproduce the error with the following steps: $ mkdir test $ cd test $ qemu-img create -f raw test.img 7G $ cfdisk test.img I selected gpt and wrote two partitions: the first one with a size of 1M and type BIOS boot, the second with a size of 7G and type Linux filesystem. $ sudo losetup --partscan --show --find test.img /dev/loop1 $ sudo mkfs.ext4 -L my-root /dev/loop1p2 $ sudo mount /dev/loop1p2 /mnt $ sudo mkdir /mnt/etc $ sudo sh -c "sed 's#/dev/sdX#/dev/loop1#g' ../.config/guix/latest/gnu/syst= em/examples/bare-bones.tmpl > /mnt/etc/config.scm" $ sudo guix system init /mnt/etc/config.scm /mnt The following derivation will be built: /gnu/store/nxy7lfbh8mx7ndrigl1bi3clsm1pnhjh-bootloader-installer.drv /gnu/store/viyn658a9hgsf0g8r4lan24hb0f8515d-system /gnu/store/aaigj9lvdyx2wpyyc40z51mjl7ff1zr5-grub.cfg /gnu/store/m74kz7rvxyzabx6i4p8gd9anws84s45z-grub-2.02 /gnu/store/s4bxrnb584jm0cy5gm3jr8hva341cj2f-bootloader-installer Betriebssystem unter =C2=BB/mnt=C2=AB wird initialisiert =E2=80=A6 In execvp of /gnu/store/d4wwx93gqizx132zjk7h1ir7rzph0pig-guix-0.12.0-10.ba2= 260d/sbin/guix-register: Datei oder Verzeichnis nicht gefunden guix system: error: failed to register '/gnu/store/2g4dzfcs6nf906d7jl6q225l= lmnv7krl-linux-libre-4.15' under '/mnt' copying to '/mnt'... It does not matter that it is a loopback device. The same thing happens if I try to install it on a USB flash drive. The issue seems to be that there is no d4wwx93gqizx132zjk7h1ir7rzph0pig-guix-0.12.0-10.ba2260d/ in my store. All I could find was this: 80k8kz7qk9palbn0ccw7y3fgym8jxlps-guix-0.12.0-10.ba2260d/ Greetings Diego