From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: Re: Copying whole /gnu/store from USB does not work Date: Fri, 10 Apr 2015 15:14:20 +0200 Message-ID: <20150410131420.GB24509@thebird.nl> References: <20150410084651.GA23353@thebird.nl> <873848p5kd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgYlo-0005lD-Jj for guix-devel@gnu.org; Fri, 10 Apr 2015 09:14:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgYll-00017N-AT for guix-devel@gnu.org; Fri, 10 Apr 2015 09:14:52 -0400 Content-Disposition: inline In-Reply-To: <873848p5kd.fsf@gnu.org> 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: Ludovic =?iso-8859-1?Q?Court=E8s?= Cc: guix-devel@gnu.org Hi Ludo, On Fri, Apr 10, 2015 at 01:48:34PM +0200, Ludovic Court=E8s wrote: > Hi! >=20 > Pjotr Prins skribis: >=20 > > I thought I would be able to bootstrap using a USB image and copy > > /gnu/store to a local hard disk. >=20 > To ???bootstrap,??? it???s best to install Guix on top of your distro, = and > build/download packages from there. (Actually bootstrapping doesn???t > require any special action with Guix.) Well yes, you need to install all prerequisites and that is not always trivial. Try bootstrapping on an old Centos install, for example. Can't even get Docker going there. It would be nice to have an installable binary tar ball for Guix. Just unpack in root and go... > > 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/ / >=20 > That cannot work. I am merely trying to be clever ;) > 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. Aha. That makes sense. If I also copy the db.sqlite it might just work then. > The valid way to do that is with ???guix archive??? (info "(guix) Invok= ing > guix archive"), or using the ???populate-store??? and ???register-closu= re??? as > is done in (gnu build vm). OK, I'll take a look. Thanks.=20 Pj. PS I am rather excited that you have LLVM going and Python packages and that Ricardo is adding bioinformatics packages. Way to go!! Now we need to add Ruby gems and GNU Guix will be the default deployment system for many.