mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-03-09 11:28:12 +00:00
feat: update ROCm installation commands to use standardized functions
This commit is contained in:
@@ -174,8 +174,8 @@ Pin-Priority: 600
|
||||
EOF
|
||||
|
||||
msg_info "Installing ROCm runtime packages (this may take several minutes)"
|
||||
apt update || return 1
|
||||
apt install -y rocm || return 1
|
||||
$STD apt update || return 1
|
||||
$STD apt install -y rocm || return 1
|
||||
ldconfig || true
|
||||
msg_ok "Installed ROCm runtime packages"
|
||||
}
|
||||
|
||||
@@ -182,11 +182,11 @@ Pin-Priority: 600
|
||||
EOF
|
||||
|
||||
msg_info "Installing ROCm runtime packages (this may take several minutes)"
|
||||
if ! retry_cmd 3 5 apt update; then
|
||||
if ! retry_cmd 3 5 apt_update_cmd; then
|
||||
msg_warn "ROCm apt repository update failed"
|
||||
return 1
|
||||
fi
|
||||
if ! retry_cmd 3 10 apt install -y rocm; then
|
||||
if ! retry_cmd 3 10 apt_install_cmd rocm; then
|
||||
msg_warn "ROCm runtime package installation failed"
|
||||
return 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user