List the IOMMU group members before adding a GPU to a VM and keep the NVENC patch state

- Add GPU to VM lists the devices from other slots that share the IOMMU group of the selected GPU before the summary
- The NVIDIA installer keeps the patched flag of the installed driver while its version is unchanged
- New messages translated into all languages
This commit is contained in:
MacRimi
2026-10-18 16:46:41 +02:00
parent f648521a73
commit d06cf0f6f6
9 changed files with 31 additions and 2 deletions
+8 -2
View File
@@ -203,8 +203,14 @@ detect_driver_status() {
if [[ -n "$CURRENT_DRIVER_VERSION" ]]; then
CURRENT_DRIVER_INSTALLED=true
# Register the installed driver version in components_status.json
update_component_status "nvidia_driver" "installed" "$CURRENT_DRIVER_VERSION" "gpu" '{"patched":false}'
# Register the installed driver version in components_status.json,
# keeping the patched flag while the recorded version is unchanged.
local patched_json='{"patched":false}'
if [[ "$(jq -r '.nvidia_driver.version // empty' "$COMPONENTS_STATUS_FILE" 2>/dev/null)" == "$CURRENT_DRIVER_VERSION" ]] \
&& is_current_nvidia_patched; then
patched_json='{"patched":true}'
fi
update_component_status "nvidia_driver" "installed" "$CURRENT_DRIVER_VERSION" "gpu" "$patched_json"
fi
fi
fi