scripts: environment: Only rewrite user-specified mappings.
* guix/scripts/environment.scm (launch-environment/container): Only apply override-user-mappings to user-mappings and cwd. Do not apply to network configuration mapping and inputs.
This commit is contained in:
parent
0971f8bd88
commit
a655d504aa
|
@ -479,6 +479,7 @@ will be used for the passwd entry. LINK-PROFILE? creates a symbolic link from
|
|||
;; /bin/sh, the current working directory, and possibly networking
|
||||
;; configuration files within the container.
|
||||
(mappings
|
||||
(append
|
||||
(override-user-mappings
|
||||
user home
|
||||
(append user-mappings
|
||||
|
@ -486,7 +487,7 @@ will be used for the passwd entry. LINK-PROFILE? creates a symbolic link from
|
|||
(list (file-system-mapping
|
||||
(source cwd)
|
||||
(target cwd)
|
||||
(writable? #t)))
|
||||
(writable? #t)))))
|
||||
;; When in Rome, do as Nix build.cc does: Automagically
|
||||
;; map common network configuration files.
|
||||
(if network?
|
||||
|
@ -498,7 +499,7 @@ will be used for the passwd entry. LINK-PROFILE? creates a symbolic link from
|
|||
(source dir)
|
||||
(target dir)
|
||||
(writable? #f)))
|
||||
reqs))))
|
||||
reqs)))
|
||||
(file-systems (append %container-file-systems
|
||||
(map file-system-mapping->bind-mount
|
||||
mappings))))
|
||||
|
|
Loading…
Reference in New Issue