From 877992a0e67a174c2e5c7a28e3331b8f6fcb5c94 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Fri, 12 Dec 2014 11:05:31 +0000 Subject: stagingarea: Mount things inside dirname --- morphlib/stagingarea.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/morphlib/stagingarea.py b/morphlib/stagingarea.py index b676d4db..0508047d 100644 --- a/morphlib/stagingarea.py +++ b/morphlib/stagingarea.py @@ -274,9 +274,11 @@ class StagingArea(object): else: binds = () + mounts = [(os.path.join(self.dirname, target), type, source) + for target, type, source in self.to_mount] cmdline = morphlib.util.containerised_cmdline( argv, cwd=kwargs.pop('cwd', '/'), - root=chroot_dir, mounts=self.to_mount, + root=chroot_dir, mounts=mounts, binds=binds, mount_proc=mount_proc, writable_paths=do_not_mount_dirs) try: -- cgit v1.2.1