build: linux-container: Fix run-container.
This is a follow-up of 5316dfc0f1
. Some users of
run-container may expect that the container is jailed, even if there are no
mounts. This is the case for some Guix tests.
* gnu/build/linux-container.scm (run-container): Do not jail the container
when the requested root is "/".
master
parent
cc6b1852e1
commit
b3a83f1ece
|
@ -243,8 +243,8 @@ that host UIDs (respectively GIDs) map to in the namespace."
|
|||
(match (read child)
|
||||
('ready
|
||||
(purify-environment)
|
||||
(when (and (not (null? mounts))
|
||||
(memq 'mnt namespaces))
|
||||
(when (and (memq 'mnt namespaces)
|
||||
(not (string=? root "/")))
|
||||
(catch #t
|
||||
(lambda ()
|
||||
(mount-file-systems root mounts
|
||||
|
|
Reference in New Issue