[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QEMU image boots into dmd

From: Ludovic Courtès
Subject: Re: QEMU image boots into dmd
Date: Tue, 24 Sep 2013 23:48:31 +0200
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

address@hidden (Ludovic Courtès) 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’s store is suitably initialized, meaning
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 ‘guix-register’ program is here to do that: you run
‘guix-register --prefix /the-image guile.closure’, where ‘guile.closure’
contains meta-data about (say) /nix/store/…-guile-2.0.9, and that
populates /the-image/var/nix/db with meta-data about that directory.
(This is known as ‘nix-store --register-validity’ in Nix.)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]