minimize_size: make sure the permissions of bindmounts are preserved

This commit is contained in:
Tomasz Melcer 2017-07-02 03:33:37 +02:00
parent 266e9e4ae3
commit 1de10b2f4f

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'])