diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-12-20 19:06:22 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-12-20 19:14:41 +0100 |
commit | f943c317fb714075b455d4a30f631c8cb45732b4 (patch) | |
tree | 7f70c29bb007f7e81f0e2884d1307237de59e6b2 /doc | |
parent | 7d2511bc6b467c056e7e0bcb0760f7b9652ba083 (diff) | |
download | guix-f943c317fb714075b455d4a30f631c8cb45732b4.tar guix-f943c317fb714075b455d4a30f631c8cb45732b4.tar.gz |
environment: Add '--root' option.
* guix/scripts/environment.scm (show-help, %options): Add --root.
(register-gc-root): New procedure.
(guix-environment): Call 'register-gc-root' when OPTS has a 'gc-root'
option.
* doc/guix.texi (Invoking guix environment): Document it.
* tests/guix-environment.sh: Add tests.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guix.texi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 512b3ae9ce..69129d5835 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -5997,6 +5997,21 @@ The @code{--container} option requires Linux-libre 3.19 or newer. The available options are summarized below. @table @code +@item --root=@var{file} +@itemx -r @var{file} +@cindex persistent environment +@cindex garbage collector root, for environments +Make @var{file} a symlink to the profile for this environment, and +register it as a garbage collector root. + +This is useful if you want to protect your environment from garbage +collection, to make it ``persistent''. + +When this option is omitted, the environment is protected from garbage +collection only for the duration of the @command{guix environment} +session. This means that next time you recreate the same environment, +you could have to rebuild or re-download packages. + @item --expression=@var{expr} @itemx -e @var{expr} Create an environment for the package or list of packages that |