summaryrefslogtreecommitdiff
path: root/buildstream/sandbox/_sandboxchroot.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/sandbox/_sandboxchroot.py')
-rw-r--r--buildstream/sandbox/_sandboxchroot.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/buildstream/sandbox/_sandboxchroot.py b/buildstream/sandbox/_sandboxchroot.py
index 64fb3c1bc..b3a2a6d9d 100644
--- a/buildstream/sandbox/_sandboxchroot.py
+++ b/buildstream/sandbox/_sandboxchroot.py
@@ -35,6 +35,9 @@ from . import Sandbox, SandboxFlags
class SandboxChroot(Sandbox):
+
+ _FUSE_MOUNT_OPTIONS = {'dev': True}
+
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@@ -67,7 +70,8 @@ class SandboxChroot(Sandbox):
# Create the mount map, this will tell us where
# each mount point needs to be mounted from and to
- self.mount_map = MountMap(self, flags & SandboxFlags.ROOT_READ_ONLY)
+ self.mount_map = MountMap(self, flags & SandboxFlags.ROOT_READ_ONLY,
+ self._FUSE_MOUNT_OPTIONS)
root_mount_source = self.mount_map.get_mount_source('/')
# Create a sysroot and run the command inside it