diff options
| author | David Thompson <dthompson2@worcester.edu> | 2015-08-01 21:04:31 -0400 |
|---|---|---|
| committer | David Thompson <dthompson2@worcester.edu> | 2015-08-08 14:04:13 -0400 |
| commit | 831bc1468ea27732ba59d58e4b38a192151aa123 (patch) | |
| tree | 7e6474a505e7721ad27a203ac24ff28a0f12697e /tests/containers.scm | |
| parent | 8c812f2aeeed8398a27f1594c20914031d97db58 (diff) | |
build: container: Add #:host-uids argument to call-with-container.
It's not always possible to map 65536 uids when creating a container as the
root user within another user namespace. This is true when building Guix
within the build daemon's container. By using a uid range of 1 by default,
even as the root user, the tests now pass.
* gnu/build/linux-container.scm (initialize-user-namespace, run-container):
Add 'host-uids' argument.
(call-with-container): Add #:host-uids keyword argument.
* tests/containers.scm ("container-excursion"): Update 'run-container' call.
Diffstat (limited to 'tests/containers.scm')
| -rw-r--r-- | tests/containers.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/containers.scm b/tests/containers.scm index cb1aeddcb1b..cc90f1ed6c5 100644 --- a/tests/containers.scm +++ b/tests/containers.scm | |||
| @@ -102,7 +102,7 @@ | |||
| 102 | (readlink (string-append "/proc/" pid "/ns/" ns))) | 102 | (readlink (string-append "/proc/" pid "/ns/" ns))) |
| 103 | '("user" "ipc" "uts" "net" "pid" "mnt")))) | 103 | '("user" "ipc" "uts" "net" "pid" "mnt")))) |
| 104 | 104 | ||
| 105 | (let* ((pid (run-container root '() %namespaces container)) | 105 | (let* ((pid (run-container root '() %namespaces 1 container)) |
| 106 | (container-namespaces (namespaces pid)) | 106 | (container-namespaces (namespaces pid)) |
| 107 | (result | 107 | (result |
| 108 | (begin | 108 | (begin |
