summaryrefslogtreecommitdiff
path: root/sandboxlib/linux_user_chroot.py
diff options
context:
space:
mode:
authorAndrew Leeming <andrew.leeming@codethink.co.uk>2016-10-14 12:28:55 +0100
committerAndrew Leeming <andrew.leeming@codethink.co.uk>2016-10-17 16:56:21 +0100
commitb25338bfbd2f6d5ba2538443f4ac3044a9d91d2f (patch)
treed6ef5f3829f63a05dcda38c66ec3716bd49359b5 /sandboxlib/linux_user_chroot.py
parentefad18c41aea63c25826c7f0e0faa7644c3a9211 (diff)
downloadsandboxlib-0.4.0.tar.gz
Bubblewrap is the default for executor_for_platform()0.4.0
Previously executor_for_platform() would select linux-user-chroot if availble. New behaviour is to look for bubblewrap first, then linux-user-chroot, else falling back to chroot. To support this, a generic 'get_program()' function was added to both bubblewrap.py and linux_user_chroot.py for interfacing.
Diffstat (limited to 'sandboxlib/linux_user_chroot.py')
-rw-r--r--sandboxlib/linux_user_chroot.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sandboxlib/linux_user_chroot.py b/sandboxlib/linux_user_chroot.py
index cab5344..f427b33 100644
--- a/sandboxlib/linux_user_chroot.py
+++ b/sandboxlib/linux_user_chroot.py
@@ -279,6 +279,9 @@ def create_mount_points_if_missing(filesystem_root, mount_info_list):
os.makedirs(path)
+def get_program():
+ return linux_user_chroot_program()
+
def linux_user_chroot_program():
# Raises sandboxlib.ProgramNotFound if not found.
return sandboxlib.utils.find_program('linux-user-chroot')