diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-06-08 13:06:29 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-06-08 13:35:30 +0100 |
commit | 79504a2446c7617fb20b855117b5aa77e07603c8 (patch) | |
tree | 3edfae82ad6fde1ae0ddeb93d28c5f4ce870c7c3 /sandboxlib/linux_user_chroot.py | |
parent | 20c76e8f94d3218925b1cabebf462ecbbbc785b1 (diff) | |
download | sandboxlib-79504a2446c7617fb20b855117b5aa77e07603c8.tar.gz |
Fix calculating mount point targets.
Diffstat (limited to 'sandboxlib/linux_user_chroot.py')
-rw-r--r-- | sandboxlib/linux_user_chroot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sandboxlib/linux_user_chroot.py b/sandboxlib/linux_user_chroot.py index eaa6adc..a5f84e0 100644 --- a/sandboxlib/linux_user_chroot.py +++ b/sandboxlib/linux_user_chroot.py @@ -274,7 +274,7 @@ def create_mount_points_if_missing(filesystem_root, mount_info_list): for source, mount_point, mount_type, mount_options in mount_info_list: # Strip the preceeding '/' from mount_point, because it'll break # os.path.join(). - mount_point_no_slash = os.path.relpath(mount_point, start='/') + mount_point_no_slash = os.path.abspath(mount_point).lstrip('/') path = os.path.join(filesystem_root, mount_point_no_slash) if not os.path.exists(path): |