mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-09 10:48:13 +00:00
fix(build): auto-resize disk +8GB when AMD GPU detected for ROCm
This commit is contained in:
@@ -3922,6 +3922,17 @@ EOF
|
||||
configure_gpu_passthrough
|
||||
configure_additional_devices
|
||||
|
||||
# Increase disk size for AMD ROCm compute stack (~8GB extra needed)
|
||||
if [[ "${GPU_TYPE:-}" == "AMD" ]]; then
|
||||
local rocm_extra=8
|
||||
local new_disk_size=$((PCT_DISK_SIZE + rocm_extra))
|
||||
if pct resize "$CTID" rootfs "${new_disk_size}G" >/dev/null 2>&1; then
|
||||
msg_ok "Disk resized ${PCT_DISK_SIZE}GB → ${new_disk_size}GB for ROCm"
|
||||
else
|
||||
msg_warn "Failed to resize disk for ROCm — installation may fail if space is insufficient"
|
||||
fi
|
||||
fi
|
||||
|
||||
# ============================================================================
|
||||
# START CONTAINER AND INSTALL USERLAND
|
||||
# ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user