mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-01 10:22:08 +00:00
fix(oci): keep installing when an image mountpoint is not a plain directory
- Log and continue when the helper refuses a mountpoint, as the seed capture does - Nothing is moved in that case, so the image installs as before
This commit is contained in:
@@ -407,7 +407,11 @@ def attach_mounts(service, temporary):
|
||||
owner = (100000,100000,0o755)
|
||||
if mount['type'] == 'managed-volume':
|
||||
from oci_image_mountpoints import normalize
|
||||
normalize(root, [mount['container_path']])
|
||||
try:
|
||||
normalize(root, [mount['container_path']])
|
||||
except (OSError, ValueError) as error:
|
||||
# Nothing was moved; the image keeps its files as before.
|
||||
print(f'Image defaults left in place for {mount["container_path"]}: {error}', file=sys.stderr)
|
||||
finally:
|
||||
run('pct','unmount',vmid)
|
||||
if mount['type']=='managed-volume':
|
||||
|
||||
Reference in New Issue
Block a user