summaryrefslogtreecommitdiff
path: root/buildstream/_platform/linux.py
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-09-26 09:29:37 +0100
committerJürg Billeter <j@bitron.ch>2018-09-27 10:18:03 +0100
commitb4ad84c34a0ca94791b85e2b5f90024f1ec65ddc (patch)
tree21e28d0989b20ed136e58159073785ec3cf461e2 /buildstream/_platform/linux.py
parentf9494f1fa9781df22606eaa43ea58c1395e1b337 (diff)
downloadbuildstream-b4ad84c34a0ca94791b85e2b5f90024f1ec65ddc.tar.gz
_platform/linux.py: Remove redundant message
Unsupported sandbox config (UID/GID) is now reported by the element.
Diffstat (limited to 'buildstream/_platform/linux.py')
-rw-r--r--buildstream/_platform/linux.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/buildstream/_platform/linux.py b/buildstream/_platform/linux.py
index 3e31b69c8..edf223639 100644
--- a/buildstream/_platform/linux.py
+++ b/buildstream/_platform/linux.py
@@ -39,7 +39,7 @@ class Linux(Platform):
self._gid = os.getegid()
self._die_with_parent_available = _site.check_bwrap_version(0, 1, 8)
- self._user_ns_available = self._check_user_ns_available(context)
+ self._user_ns_available = self._check_user_ns_available()
self._artifact_cache = CASCache(context, enable_push=self._user_ns_available)
@property
@@ -64,7 +64,7 @@ class Linux(Platform):
################################################
# Private Methods #
################################################
- def _check_user_ns_available(self, context):
+ def _check_user_ns_available(self):
# Here, lets check if bwrap is able to create user namespaces,
# issue a warning if it's not available, and save the state
@@ -88,9 +88,4 @@ class Linux(Platform):
return True
else:
- context.message(
- Message(None, MessageType.WARN,
- "Unable to create user namespaces with bubblewrap, resorting to fallback",
- detail="Some builds may not function due to lack of uid / gid 0, " +
- "artifacts created will not be trusted for push purposes."))
return False