unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Pjotr Prins <pjotr.public12@thebird.nl>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Copying whole /gnu/store from USB does not work
Date: Fri, 10 Apr 2015 15:14:20 +0200	[thread overview]
Message-ID: <20150410131420.GB24509@thebird.nl> (raw)
In-Reply-To: <873848p5kd.fsf@gnu.org>

Hi Ludo,

On Fri, Apr 10, 2015 at 01:48:34PM +0200, Ludovic Courtès wrote:
> Hi!
> 
> Pjotr Prins <pjotr.public12@thebird.nl> skribis:
> 
> > I thought I would be able to bootstrap using a USB image and copy
> > /gnu/store to a local hard disk.
> 
> 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 
> >     mkdir tmp
> >     mount /dev/mapper/loop0p1 mnt
> >     cp -vau mnt/gnu tmp
> >     mv tmp/gnu/ /
> 
> 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) Invoking
> guix archive"), or using the ???populate-store??? and ???register-closure??? as
> is done in (gnu build vm).

OK, I'll take a look. Thanks. 

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.

  reply	other threads:[~2015-04-10 13:14 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-10  8:46 Copying whole /gnu/store from USB does not work Pjotr Prins
2015-04-10 11:48 ` Ludovic Courtès
2015-04-10 13:14   ` Pjotr Prins [this message]
2015-04-10 13:41     ` David Thompson
2015-04-12 10:28     ` Copying whole /gnu/store from USB does not work (SOLVED) Pjotr Prins
2015-04-12 12:29       ` Ludovic Courtès
2015-04-12 20:07     ` Self-contained Guix tarball Ludovic Courtès
2015-04-13  6:54       ` Pjotr Prins
2015-04-13  9:57         ` Ludovic Courtès
2015-04-13 10:05           ` Pjotr Prins
2015-04-13 13:29           ` Mark H Weaver
2015-04-14 21:33             ` Ludovic Courtès
2015-04-13 15:47       ` Thompson, David
2015-04-15 21:31       ` Ludovic Courtès
2015-04-16  5:33         ` Pjotr Prins
2015-04-18 21:23           ` Ludovic Courtès
2015-04-19  8:18             ` Pjotr Prins
2015-04-19 20:09               ` Ludovic Courtès
2015-04-19 13:34             ` Taylan Ulrich Bayırlı/Kammer
2015-04-20 20:49               ` Ludovic Courtès
2015-04-21  7:03                 ` Pjotr Prins
2015-04-21  7:19                   ` Pjotr Prins
2015-04-21  8:18                     ` Ludovic Courtès
2015-04-21  8:44                       ` Pjotr Prins
2015-04-21 12:16                         ` Ludovic Courtès
2015-04-21  8:11                   ` Ludovic Courtès
2015-04-21  8:37                     ` Pjotr Prins
2015-04-21 10:08                       ` Ricardo Wurmus
2015-04-21 10:17                         ` Pjotr Prins
2015-04-21 12:08                           ` Andreas Enge
2015-04-21 12:12                       ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150410131420.GB24509@thebird.nl \
    --to=pjotr.public12@thebird.nl \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).