summaryrefslogtreecommitdiff
path: root/buildstream/_fuse/mount.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2018-09-18 13:50:15 +0000
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-09-18 13:50:15 +0000
commitd8450166db2dc72e43018a48e2cbc6f546af05f8 (patch)
tree26df4d2164f0150097a01356975e3459e895c8d4 /buildstream/_fuse/mount.py
parent97071b6ee598aad5ed159bb038bb333a468f065e (diff)
parent8430fdc7da59a20d6a3ec9b526d681b8f68920ec (diff)
downloadbuildstream-d8450166db2dc72e43018a48e2cbc6f546af05f8.tar.gz
Merge branch 'richardmaw/fix-chroot-sandbox-devices' into 'master'
fix chroot sandbox devices See merge request BuildStream/buildstream!781
Diffstat (limited to 'buildstream/_fuse/mount.py')
-rw-r--r--buildstream/_fuse/mount.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/buildstream/_fuse/mount.py b/buildstream/_fuse/mount.py
index 0ab1ce715..30cc85b77 100644
--- a/buildstream/_fuse/mount.py
+++ b/buildstream/_fuse/mount.py
@@ -87,6 +87,9 @@ class Mount():
# User Facing API #
################################################
+ def __init__(self, fuse_mount_options={}):
+ self._fuse_mount_options = fuse_mount_options
+
# mount():
#
# User facing API for mounting a fuse subclass implementation
@@ -184,7 +187,8 @@ class Mount():
# Run fuse in foreground in this child process, internally libfuse
# will handle SIGTERM and gracefully exit it's own little main loop.
#
- FUSE(self.__operations, self.__mountpoint, nothreads=True, foreground=True, nonempty=True)
+ FUSE(self.__operations, self.__mountpoint, nothreads=True, foreground=True, nonempty=True,
+ **self._fuse_mount_options)
# Explicit 0 exit code, if the operations crashed for some reason, the exit
# code will not be 0, and we want to know about it.