From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Copying whole /gnu/store from USB does not work Date: Fri, 10 Apr 2015 13:48:34 +0200 Message-ID: <873848p5kd.fsf@gnu.org> References: <20150410084651.GA23353@thebird.nl> 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]:39961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgXQQ-0000iN-Sn for guix-devel@gnu.org; Fri, 10 Apr 2015 07:48:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgXQM-00028C-MD for guix-devel@gnu.org; Fri, 10 Apr 2015 07:48:42 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgXQM-000288-J2 for guix-devel@gnu.org; Fri, 10 Apr 2015 07:48:38 -0400 In-Reply-To: <20150410084651.GA23353@thebird.nl> (Pjotr Prins's message of "Fri, 10 Apr 2015 10:46:52 +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: Pjotr Prins Cc: guix-devel@gnu.org Hi! Pjotr Prins skribis: > I thought I would be able to bootstrap using a USB image and copy > /gnu/store to a local hard disk. To =E2=80=9Cbootstrap,=E2=80=9D it=E2=80=99s best to install Guix on top of= your distro, and build/download packages from there. (Actually bootstrapping doesn=E2=80=99t require any special action with Guix.) > mount it with kpartx > > kpartx -v -a gnu-usb-install-0.8.x86_64-linux > mkdir mnt=20 > mkdir tmp > mount /dev/mapper/loop0p1 mnt > cp -vau mnt/gnu tmp > mv tmp/gnu/ / That cannot work. The reason is that the store is really two things: /gnu/store, and /var/guix/db/db.sqlite. The latter contains meta-data about the former, notably the list of valid store items. The valid way to do that is with =E2=80=98guix archive=E2=80=99 (info "(gui= x) Invoking guix archive"), or using the =E2=80=98populate-store=E2=80=99 and =E2=80=98= register-closure=E2=80=99 as is done in (gnu build vm). HTH, Ludo=E2=80=99. PS: note that the latest version is 0.8.1, not 0.8.