feat: update ROCm installation commands to use standardized functions

This commit is contained in:
John Doe
2026-03-04 00:35:43 -05:00
parent 83847ad98f
commit d49a8d04cd
2 changed files with 4 additions and 4 deletions

View File

@@ -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"
}

View File

@@ -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