mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-10-04 12:36:39 +00:00
fix(oci): clarify template refresh and update backup guidance
This commit is contained in:
@@ -232,7 +232,7 @@ def manage_instance(project, ui, row, action=None, lifecycle_args=()):
|
||||
wizard.close()
|
||||
if not approved:
|
||||
return False
|
||||
elif not ui.review(translate('The current image of the saved channel will be checked and downloaded. Resources, paths and GPU are kept. The CT is stopped during the replacement and a native backup is created first.'),
|
||||
elif not ui.review(translate('The saved image channel is checked for a newer image. If replacement is needed, the CT is stopped and a native backup is verified before its root is replaced. Host directories are outside that backup.'),
|
||||
translate('Update OCI'), question=translate('Update now?'), default=True):
|
||||
return False
|
||||
command = [sys.executable, str(project / 'remote/oci_update_current.py'), str(row['vmid']),
|
||||
|
||||
@@ -151,10 +151,10 @@ def refresh_template(candidate, ui):
|
||||
latest = catalog.compose(name)
|
||||
if latest == old:
|
||||
return
|
||||
if not ui.confirm(translate('Apply the options from the current catalog template? Your data and configuration are kept.'), True):
|
||||
if not ui.confirm(translate('Apply options from the current catalog template? New required paths and settings may be requested. Review the resulting configuration before recreating the CT.'), True):
|
||||
return
|
||||
if latest['id'] != old['id'] or latest['container_contract']['image']['repository'] != old['container_contract']['image']['repository']:
|
||||
raise ValueError(translate('The current template changes the image or identity; an explicit migration is required'))
|
||||
raise ValueError(translate('The current template changes the template identity or image repository; an explicit migration is required'))
|
||||
deployment = candidate['deployment']
|
||||
mounted = {m['container_path'] for m in deployment.get('mounts', [])}
|
||||
for volume in latest['container_contract'].get('volumes', []):
|
||||
|
||||
Reference in New Issue
Block a user