unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* guix system seems not to respect ./pre-inst-env
@ 2016-12-18 13:42 John Darrington
  2016-12-18 16:24 ` Mark H Weaver
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: John Darrington @ 2016-12-18 13:42 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 497 bytes --]

When I run:  ./pre-inst-env guix system disk-image gnu/system/install.scm

The resulting disk image is always the one corresponding to the currently installed guix,
not the one whose source is in .

How can I generate a disk image for an arbitrary guix?

J'

-- 
Avoid eavesdropping.  Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guix system seems not to respect ./pre-inst-env
  2016-12-18 13:42 guix system seems not to respect ./pre-inst-env John Darrington
@ 2016-12-18 16:24 ` Mark H Weaver
  2016-12-18 16:30 ` David Craven
  2016-12-19 10:55 ` Ludovic Courtès
  2 siblings, 0 replies; 5+ messages in thread
From: Mark H Weaver @ 2016-12-18 16:24 UTC (permalink / raw)
  To: John Darrington; +Cc: guix-devel

John Darrington <john@darrington.wattle.id.au> writes:

> When I run:  ./pre-inst-env guix system disk-image gnu/system/install.scm
>
> The resulting disk image is always the one corresponding to the
> currently installed guix, not the one whose source is in .

That's odd.  It has always worked for me.  I can think of two possible
environment variables that could cause 'pre-inst-env' to fail:
"BASH_ENV" and "GUIX_PACKAGE_PATH".  Were either of these variables set
in the environment of the above command when it failed?

      Mark

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guix system seems not to respect ./pre-inst-env
  2016-12-18 13:42 guix system seems not to respect ./pre-inst-env John Darrington
  2016-12-18 16:24 ` Mark H Weaver
@ 2016-12-18 16:30 ` David Craven
  2016-12-19 10:56   ` Ludovic Courtès
  2016-12-19 10:55 ` Ludovic Courtès
  2 siblings, 1 reply; 5+ messages in thread
From: David Craven @ 2016-12-18 16:30 UTC (permalink / raw)
  To: John Darrington; +Cc: guix-devel

I think you have to do something like this:

(define guix-local
  (package
    (inherit guix)
    (source (local-file "path to guix local")))

(define guix-service-local
  (guix-service (guix-configuration (authorize-key? #t) (guix guix-local)))

and add guix-service-local to your installer.

HTH

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guix system seems not to respect ./pre-inst-env
  2016-12-18 13:42 guix system seems not to respect ./pre-inst-env John Darrington
  2016-12-18 16:24 ` Mark H Weaver
  2016-12-18 16:30 ` David Craven
@ 2016-12-19 10:55 ` Ludovic Courtès
  2 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2016-12-19 10:55 UTC (permalink / raw)
  To: John Darrington; +Cc: guix-devel

Hi John!

John Darrington <john@darrington.wattle.id.au> skribis:

> When I run:  ./pre-inst-env guix system disk-image gnu/system/install.scm
>
> The resulting disk image is always the one corresponding to the currently installed guix,
> not the one whose source is in .

More precisely, the resulting image is for the Guix in your source tree,
*but* the image runs a version of Guix that is older than your source
tree; specifically, it runs ‘guix-devel’ from (gnu packages
package-management).

If you want the current Guix inside the image, you need to use
‘current-guix’ as done in (gnu tests install).

HTH!

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guix system seems not to respect ./pre-inst-env
  2016-12-18 16:30 ` David Craven
@ 2016-12-19 10:56   ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2016-12-19 10:56 UTC (permalink / raw)
  To: David Craven; +Cc: guix-devel

David Craven <david@craven.ch> skribis:

> I think you have to do something like this:
>
> (define guix-local
>   (package
>     (inherit guix)
>     (source (local-file "path to guix local")))
>
> (define guix-service-local
>   (guix-service (guix-configuration (authorize-key? #t) (guix guix-local)))
>
> and add guix-service-local to your installer.

Exactly.  ‘current-guix’ in (gnu packages package-management) is a
slightly more sophisticated version of that.

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-12-19 10:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-18 13:42 guix system seems not to respect ./pre-inst-env John Darrington
2016-12-18 16:24 ` Mark H Weaver
2016-12-18 16:30 ` David Craven
2016-12-19 10:56   ` Ludovic Courtès
2016-12-19 10:55 ` Ludovic Courtès

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).