Merge pull request #386 from liori/minimize-size-bindmount-permissions

minimize_size: make sure the permissions of bindmounts are preserved
This commit is contained in:
Anders Ingemann 2017-07-02 14:01:22 +02:00 committed by GitHub
commit d062c9b31a

View file

@ -21,6 +21,7 @@ class AddFolderMounts(Task):
os.mkdir(temp_path)
full_path = os.path.join(info.root, folder)
os.chmod(temp_path, os.stat(full_path).st_mode)
info.volume.partition_map.root.add_mount(temp_path, full_path, ['--bind'])