fix(oci): preserve image defaults before attaching managed volumes

This commit is contained in:
jcastro
2026-10-22 10:27:00 +02:00
parent c04fd65b4f
commit 00ebb0b2f9
5 changed files with 305 additions and 1 deletions
+3
View File
@@ -405,6 +405,9 @@ def attach_mounts(service, temporary):
run('cp','-a',str(target)+'/.',str(seed))
else:
owner = (100000,100000,0o755)
if mount['type'] == 'managed-volume':
from oci_image_mountpoints import normalize
normalize(root, [mount['container_path']])
finally:
run('pct','unmount',vmid)
if mount['type']=='managed-volume':