diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-02-03 00:20:40 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-02-03 00:23:28 +0100 |
commit | d2a5e6982ddcbe1e5479bda62a72b3a94570855a (patch) | |
tree | afc74823fd2f8b40570593e61d05196ef2df8063 /guix/scripts/environment.scm | |
parent | 0f31d4f07f8203305c486da76cdeee57ae8a4efc (diff) | |
download | gnu-guix-d2a5e6982ddcbe1e5479bda62a72b3a94570855a.tar gnu-guix-d2a5e6982ddcbe1e5479bda62a72b3a94570855a.tar.gz |
file-systems: Add 'file-system-mapping->bind-mount'.
* gnu/system/file-systems.scm (file-system-mapping->bind-mount): New
procedure.
* gnu/system/linux-container.scm (mapping->file-system): Remove.
(containerized-operating-system)[mapping->fs]: Use
'file-system-mapping->bind-mount' instead of 'mapping->file-system'.
* guix/scripts/environment.scm (launch-environment/container): Likewise.
Diffstat (limited to 'guix/scripts/environment.scm')
-rw-r--r-- | guix/scripts/environment.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index 8a3a935a10..0a1205d087 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -433,7 +433,8 @@ host file systems to mount inside the container." (writable? #f))) reqs))) (file-systems (append %container-file-systems - (map mapping->file-system mappings)))) + (map file-system-mapping->bind-mount + mappings)))) (exit/status (call-with-container file-systems (lambda () |