fix(hwaccel): install ROCm runtime only, reduce disk resize to +4GB

The full 'rocm' meta-package includes 15GB+ of dev tools (compilers,
debuggers, dev headers) which are unnecessary in LXC containers.
Install only runtime packages: rocm-opencl-runtime, rocm-hip-runtime,
rocm-smi-lib. Reduce disk resize from +8GB to +4GB accordingly.
This commit is contained in:
CanbiZ (MickLesk)
2026-03-09 11:14:26 +01:00
parent d8b2a37228
commit e7f551dab6
2 changed files with 6 additions and 5 deletions

View File

@@ -4641,8 +4641,9 @@ Pin-Priority: 600
EOF
$STD apt update
$STD apt install -y rocm 2>/dev/null || {
msg_warn "ROCm meta-package install failed — trying minimal set"
# Install only runtime packages — full 'rocm' meta-package includes 15GB+ dev tools
$STD apt install -y rocm-opencl-runtime rocm-hip-runtime rocm-smi-lib 2>/dev/null || {
msg_warn "ROCm runtime install failed — trying minimal set"
$STD apt install -y rocm-opencl-runtime rocm-smi-lib 2>/dev/null || msg_warn "ROCm minimal install also failed"
}