diff options
author | Carl Dong <accounts@carldong.me> | 2019-06-29 17:15:11 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2019-07-08 10:33:20 -0400 |
commit | b6dc08393e6a8313b88ce422fc3c1e4e9c0efc6f (patch) | |
tree | a3ca7a35febe75c42848c9f2256c1d62fa2c15a2 /doc/guix.texi | |
parent | a655d504aa1dc04ab9c8916f2022f07ca89ceb3b (diff) | |
download | patches-b6dc08393e6a8313b88ce422fc3c1e4e9c0efc6f.tar patches-b6dc08393e6a8313b88ce422fc3c1e4e9c0efc6f.tar.gz |
scripts: environment: Add --no-cwd.
* doc/guix.texi (Invoking guix environment): Add --no-cwd.
* guix/scripts/environment.scm (show-help, %options): Add --no-cwd.
(launch-environment/container): Add 'map-cwd?' param; only add mapping
for cwd if #t. Only change to cwd within container if #t, otherwise
home.
(guix-environment): Error if --no-cwd without --container. Provide
'(not no-cwd?)' to launch-environment/container as 'map-cwd?'.
* tests/guix-environment.sh: Add test for no-cwd.
Co-authored-by: Mike Gerwitz <mtg@gnu.org>
Diffstat (limited to 'doc/guix.texi')
-rw-r--r-- | doc/guix.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 0b50482530..3e0788ed3a 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -4657,6 +4657,14 @@ While this will limit the leaking of user identity through home paths and each of the user fields, this is only one useful component of a broader privacy/anonymity solution---not one in and of itself. +@item --no-cwd +For containers, the default behavior is to share the current working +directory with the isolated container and immediately change to that +directory within the container. If this is undesirable, @code{--no-cwd} +will cause the current working directory to @emph{not} be automatically +shared and will change to the user's home directory within the container +instead. See also @code{--user}. + @item --expose=@var{source}[=@var{target}] For containers, expose the file system @var{source} from the host system as the read-only file system @var{target} within the container. If |