mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-12-16 06:50:21 +00:00
minimize_size: make sure the permissions of bindmounts are preserved
This commit is contained in:
parent
266e9e4ae3
commit
1de10b2f4f
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ class AddFolderMounts(Task):
|
||||||
os.mkdir(temp_path)
|
os.mkdir(temp_path)
|
||||||
|
|
||||||
full_path = os.path.join(info.root, folder)
|
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'])
|
info.volume.partition_map.root.add_mount(temp_path, full_path, ['--bind'])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue