summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-09-26 09:29:37 +0100
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2019-04-14 16:25:19 +0900
commit6b1afee2b7d8f6375993a2eebde1e07945622b7c (patch)
treebd3dc6d327fa285457cfc227bc23a6922ae0c3b1
parentc2f572f10c1bcde00ee800a0bfa1f8a7b1911135 (diff)
downloadbuildstream-6b1afee2b7d8f6375993a2eebde1e07945622b7c.tar.gz
_platform/linux.py: Remove redundant message
Unsupported sandbox config (UID/GID) is now reported by the element.
-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