fix(oci): a shared host directory shows what the host has mounted inside it

This commit is contained in:
MacRimi
2026-10-10 20:52:52 +02:00
parent a1bac7aeec
commit 155cafcb73
12 changed files with 269 additions and 8 deletions
+3
View File
@@ -16,6 +16,7 @@ import oci_gpu_devices as gpu_devices
import oci_host_mounts as host_mounts
import oci_instance_reconcile as reconcile
import oci_instances as instances
import oci_nested_mounts
import oci_stack_replay as replay
from oci_ui import msg_error, msg_info, msg_ok, translate
@@ -129,6 +130,8 @@ def apply(vmid, changes):
if unused:
run('pct', 'set', str(vmid), '--delete', unused)
msg_ok(f"{translate('Path removed:')} {path}")
if changes['add_mounts'] or changes['remove_mounts']:
oci_nested_mounts.follow(vmid)
def recorded_mounts(vmid):