From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: QEMU image boots into dmd Date: Tue, 24 Sep 2013 23:48:31 +0200 Message-ID: <877ge5q4b4.fsf@gnu.org> References: <87vc1vay4o.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]:49385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOaY9-0006El-9y for guix-devel@gnu.org; Tue, 24 Sep 2013 17:53:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOaY3-0007i9-EA for guix-devel@gnu.org; Tue, 24 Sep 2013 17:53:41 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:58134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOaY3-0007hm-8V for guix-devel@gnu.org; Tue, 24 Sep 2013 17:53:35 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id B8B67162D for ; Tue, 24 Sep 2013 23:48:32 +0200 (CEST) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GNR5zC6uuA8p for ; Tue, 24 Sep 2013 23:48:32 +0200 (CEST) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 74FAA1622 for ; Tue, 24 Sep 2013 23:48:32 +0200 (CEST) In-Reply-To: <87vc1vay4o.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 21 Sep 2013 01:09:43 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > We need to at least make a proper profile, put it in $PATH via > /etc/bashrc; we need to have Guix installed in the image, and the > packages already there recognized. There are many details to fix > (setting a host name, etc.) With commit 30f25b0, the image=E2=80=99s store is suitably initialized, mea= ning that Guix can be used inside the image. Remember that the store is made of /nix/store plus an SQLite database that stores references/referrers and additional meta-data. Thus, copying /nix/store/foobar to /the-image/nix/store is not enough to initialize the store. The new =E2=80=98guix-register=E2=80=99 program is here to do that: you run =E2=80=98guix-register --prefix /the-image guile.closure=E2=80=99, where = =E2=80=98guile.closure=E2=80=99 contains meta-data about (say) /nix/store/=E2=80=A6-guile-2.0.9, and that populates /the-image/var/nix/db with meta-data about that directory. (This is known as =E2=80=98nix-store --register-validity=E2=80=99 in Nix.) Thanks, Ludo=E2=80=99.