container: Pass a list of <file-system> objects as things to mount.
authorLudovic Courtès <ludo@gnu.org>
Thu, 10 Nov 2016 16:45:54 +0000 (17:45 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 10 Nov 2016 17:01:44 +0000 (18:01 +0100)
commit5970e8e248f6327c41c83b86bb2c89be7c3b1b4e
tree0f796474c90be43c8ce6f2e974064953e0b230c4
parent5e7eaccb14382b2d49bc8b4fc10fc57876d6c56f
container: Pass a list of <file-system> objects as things to mount.

* gnu/build/linux-container.scm (mount-file-systems): 'mounts' is now a
list of <file-system> objects instead of a list of lists ("specs").
Add call to 'file-system->spec' as the argument to 'mount-file-system'.
(run-container, call-with-container): Adjust docstring accordingly.
* gnu/system/file-systems.scm (spec->file-system): New procedure.
* gnu/system/linux-container.scm (container-script)[script]: Call
'spec->file-system' inside gexp.
* guix/scripts/environment.scm (launch-environment/container): Remove
call to 'file-system->spec'.
* tests/containers.scm ("call-with-container, mnt namespace")
("call-with-container, mnt namespace, wrong bind mount"): Pass a list of
<file-system> objects.
gnu/build/linux-container.scm
gnu/system/file-systems.scm
gnu/system/linux-container.scm
guix/scripts/environment.scm
tests/containers.scm