diff options
author | Jürg Billeter <j@bitron.ch> | 2019-11-12 08:13:38 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-11-27 16:21:45 +0100 |
commit | ba2aba842448aad4cd04901be4b12a740662c908 (patch) | |
tree | a3d3c4da642404d650266a5f4d5103e4185fbcc6 /src/buildstream/sandbox | |
parent | 364a316405ef820ac377255a9062019cb4ae9ae1 (diff) | |
download | buildstream-ba2aba842448aad4cd04901be4b12a740662c908.tar.gz |
_sandboxreapi.py: Ensure /dev, /proc and /tmp exist in sandbox
Diffstat (limited to 'src/buildstream/sandbox')
-rw-r--r-- | src/buildstream/sandbox/_sandboxreapi.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildstream/sandbox/_sandboxreapi.py b/src/buildstream/sandbox/_sandboxreapi.py index 65f2eaeae..d2cd1b3bc 100644 --- a/src/buildstream/sandbox/_sandboxreapi.py +++ b/src/buildstream/sandbox/_sandboxreapi.py @@ -53,6 +53,10 @@ class SandboxREAPI(Sandbox): assert cwd.startswith("/") vdir.descend(*cwd[1:].split(os.path.sep), create=True) + # Ensure directories required for sandboxed execution exist + for directory in ["dev", "proc", "tmp"]: + vdir.descend(directory, create=True) + # Create directories for all marked directories. This emulates # some of the behaviour of other sandboxes, which create these # to use as mount points. |