Skip to content
Snippets Groups Projects
Unverified Commit 5316dfc0 authored by Mathieu Othacehe's avatar Mathieu Othacehe
Browse files

linux-container: Do not jail the container unconditionally.

We may want to run a container inside the MNT namespace, without jailing the
container. If RUN-CONTAINER is passed a null MOUNTS list, do not jail the
container.

* gnu/build/linux-container.scm (run-container): Do not call
MOUNT-FILE-SYSTEMS if MOUNTS list is empty.
parent 22827396
No related branches found
No related tags found
No related merge requests found
......@@ -243,7 +243,8 @@ (define* (run-container root mounts namespaces host-uids thunk
(match (read child)
('ready
(purify-environment)
(when (memq 'mnt namespaces)
(when (and (not (null? mounts))
(memq 'mnt namespaces))
(catch #t
(lambda ()
(mount-file-systems root mounts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment