Changes for ubuntu 16.10.
This commit is contained in:
parent
99fa974b56
commit
c6610c77b8
8 changed files with 37 additions and 31 deletions
|
|
@ -17,8 +17,8 @@ class OverlayfsMount():
|
|||
self.work_dir = tempfile.mkdtemp()
|
||||
option_string = ("lowerdir=%s,upperdir=%s,workdir=%s" %
|
||||
(self.lower_dir, self.upper_dir, self.work_dir))
|
||||
subprocess.check_call(["sudo", "mount", "-t", "overlayfs", "-o",
|
||||
option_string, "overlayfs", self.mount_point],
|
||||
subprocess.check_call(["sudo", "mount", "-t", "overlay", "-o",
|
||||
option_string, "overlay", self.mount_point],
|
||||
stderr=subprocess.PIPE)
|
||||
for command in ["chmod", "chown"]:
|
||||
subprocess.check_call(["sudo", command, "--reference", lower_dir,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue