mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-22 15:06:25 +01:00
Compare commits
1 Commits
fix/amd-gp
...
fix/amd-gp
| Author | SHA1 | Date | |
|---|---|---|---|
| 5d1395ee55 |
@ -2734,7 +2734,7 @@ EOF
|
||||
return 1
|
||||
}
|
||||
|
||||
# For AMD GPUs, firmware-amd-graphics is needed but requires non-free repositories
|
||||
# For AMD GPUs, firmware-amd-graphics requires non-free repositories
|
||||
if [[ "$os_id" == "debian" ]]; then
|
||||
# Add non-free-firmware repository if not already present
|
||||
if [[ ! -f /etc/apt/sources.list.d/non-free-firmware.sources ]]; then
|
||||
@ -2766,13 +2766,24 @@ EOF
|
||||
$STD apt update
|
||||
fi
|
||||
|
||||
# Now install AMD firmware and libdrm
|
||||
# Install AMD firmware and libdrm
|
||||
$STD apt -y install libdrm-amdgpu1 firmware-amd-graphics 2>/dev/null || {
|
||||
msg_warn "Failed to install AMD firmware - may need manual installation"
|
||||
}
|
||||
elif [[ "$os_id" == "ubuntu" ]]; then
|
||||
# For Ubuntu, ensure multiverse is enabled (firmware-amd-graphics is in multiverse)
|
||||
if ! grep -qE '^deb.*multiverse' /etc/apt/sources.list /etc/apt/sources.list.d/*.list 2>/dev/null; then
|
||||
$STD add-apt-repository -y multiverse
|
||||
$STD apt update
|
||||
fi
|
||||
|
||||
# Install AMD firmware and libdrm
|
||||
$STD apt -y install libdrm-amdgpu1 firmware-amd-graphics 2>/dev/null || {
|
||||
msg_warn "Failed to install AMD firmware - may need manual installation"
|
||||
}
|
||||
else
|
||||
# For non-Debian (Ubuntu, etc), try to install without adding repos
|
||||
$STD apt -y install libdrm-amdgpu1 firmware-amd-graphics 2>/dev/null || true
|
||||
# For other distributions, try without adding repositories
|
||||
$STD apt -y install libdrm-amdgpu1 2>/dev/null || true
|
||||
fi
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user