fix(post-install): explain when an AMD CPU does not need the AMD fixes

This commit is contained in:
MacRimi
2026-10-23 18:24:43 +02:00
parent 779dd7fb26
commit 2f48689087
8 changed files with 14 additions and 2 deletions
+1
View File
@@ -146,6 +146,7 @@
"AMD (ROCm)": "AMD (ROCm)", "AMD (ROCm)": "AMD (ROCm)",
"AMD (VA-API and ROCm detection)": "AMD (VA-API- und ROCm-Erkennung)", "AMD (VA-API and ROCm detection)": "AMD (VA-API- und ROCm-Erkennung)",
"AMD CPU detected": "AMD-CPU erkannt", "AMD CPU detected": "AMD-CPU erkannt",
"AMD CPU detected, but these fixes only apply to AMD EPYC and Ryzen. Nothing was changed.": "AMD-CPU erkannt, aber diese Korrekturen gelten nur für AMD EPYC und Ryzen. Es wurde nichts geändert.",
"AMD CPU fixes applied successfully": "AMD-CPU-Korrekturen erfolgreich angewendet", "AMD CPU fixes applied successfully": "AMD-CPU-Korrekturen erfolgreich angewendet",
"AMD GPU Tools installation completed!": "Die Installation der AMD GPU Tools ist abgeschlossen!", "AMD GPU Tools installation completed!": "Die Installation der AMD GPU Tools ist abgeschlossen!",
"AMD GPU passthrough configured.": "AMD GPU-Passthrough konfiguriert.", "AMD GPU passthrough configured.": "AMD GPU-Passthrough konfiguriert.",
+1
View File
@@ -145,6 +145,7 @@
"AMD (ROCm)": "AMD (ROCm)", "AMD (ROCm)": "AMD (ROCm)",
"AMD (VA-API and ROCm detection)": "AMD (VA-API y detección con ROCm)", "AMD (VA-API and ROCm detection)": "AMD (VA-API y detección con ROCm)",
"AMD CPU detected": "CPU AMD detectada", "AMD CPU detected": "CPU AMD detectada",
"AMD CPU detected, but these fixes only apply to AMD EPYC and Ryzen. Nothing was changed.": "Se ha detectado una CPU AMD, pero estas correcciones solo se aplican a AMD EPYC y Ryzen. No se ha cambiado nada.",
"AMD CPU fixes applied successfully": "Las correcciones de CPU AMD se aplicaron con éxito", "AMD CPU fixes applied successfully": "Las correcciones de CPU AMD se aplicaron con éxito",
"AMD GPU Tools installation completed!": "¡Se completó la instalación de las herramientas AMD GPU!", "AMD GPU Tools installation completed!": "¡Se completó la instalación de las herramientas AMD GPU!",
"AMD GPU passthrough configured.": "Passthrough de GPU AMD configurado.", "AMD GPU passthrough configured.": "Passthrough de GPU AMD configurado.",
+1
View File
@@ -146,6 +146,7 @@
"AMD (ROCm)": "AMD (ROCm)", "AMD (ROCm)": "AMD (ROCm)",
"AMD (VA-API and ROCm detection)": "AMD (détection VA-API et ROCm)", "AMD (VA-API and ROCm detection)": "AMD (détection VA-API et ROCm)",
"AMD CPU detected": "Processeur AMD détecté", "AMD CPU detected": "Processeur AMD détecté",
"AMD CPU detected, but these fixes only apply to AMD EPYC and Ryzen. Nothing was changed.": "Processeur AMD détecté, mais ces correctifs ne s’appliquent qu’aux AMD EPYC et Ryzen. Rien n’a été modifié.",
"AMD CPU fixes applied successfully": "Correctifs du processeur AMD appliqués avec succès", "AMD CPU fixes applied successfully": "Correctifs du processeur AMD appliqués avec succès",
"AMD GPU Tools installation completed!": "Installation des outils GPU AMD terminée !", "AMD GPU Tools installation completed!": "Installation des outils GPU AMD terminée !",
"AMD GPU passthrough configured.": "Passthrough GPU AMD configuré.", "AMD GPU passthrough configured.": "Passthrough GPU AMD configuré.",
+1
View File
@@ -146,6 +146,7 @@
"AMD (ROCm)": "AMD (ROCm)", "AMD (ROCm)": "AMD (ROCm)",
"AMD (VA-API and ROCm detection)": "AMD (VA-API e rilevamento tramite ROCm)", "AMD (VA-API and ROCm detection)": "AMD (VA-API e rilevamento tramite ROCm)",
"AMD CPU detected": "Rilevata CPU AMD", "AMD CPU detected": "Rilevata CPU AMD",
"AMD CPU detected, but these fixes only apply to AMD EPYC and Ryzen. Nothing was changed.": "CPU AMD rilevata, ma queste correzioni si applicano solo ad AMD EPYC e Ryzen. Non è stato modificato nulla.",
"AMD CPU fixes applied successfully": "Correzioni CPU AMD applicate correttamente", "AMD CPU fixes applied successfully": "Correzioni CPU AMD applicate correttamente",
"AMD GPU Tools installation completed!": "Installazione strumenti GPU AMD completata!", "AMD GPU Tools installation completed!": "Installazione strumenti GPU AMD completata!",
"AMD GPU passthrough configured.": "Passthrough GPU AMD configurato.", "AMD GPU passthrough configured.": "Passthrough GPU AMD configurato.",
+1
View File
@@ -146,6 +146,7 @@
"AMD (ROCm)": "AMD (ROCm)", "AMD (ROCm)": "AMD (ROCm)",
"AMD (VA-API and ROCm detection)": "AMD (detecção VA-API e ROCm)", "AMD (VA-API and ROCm detection)": "AMD (detecção VA-API e ROCm)",
"AMD CPU detected": "CPU AMD detectada", "AMD CPU detected": "CPU AMD detectada",
"AMD CPU detected, but these fixes only apply to AMD EPYC and Ryzen. Nothing was changed.": "CPU AMD detetada, mas estas correções aplicam-se apenas a AMD EPYC e Ryzen. Nada foi alterado.",
"AMD CPU fixes applied successfully": "Correções de CPU AMD aplicadas com sucesso", "AMD CPU fixes applied successfully": "Correções de CPU AMD aplicadas com sucesso",
"AMD GPU Tools installation completed!": "Instalação das ferramentas AMD GPU concluída!", "AMD GPU Tools installation completed!": "Instalação das ferramentas AMD GPU concluída!",
"AMD GPU passthrough configured.": "Passagem de GPU AMD configurada.", "AMD GPU passthrough configured.": "Passagem de GPU AMD configurada.",
+1
View File
@@ -146,6 +146,7 @@
"AMD (ROCm)": "AMD (ROCm)", "AMD (ROCm)": "AMD (ROCm)",
"AMD (VA-API and ROCm detection)": "AMD (detekcia VA-API a ROCm)", "AMD (VA-API and ROCm detection)": "AMD (detekcia VA-API a ROCm)",
"AMD CPU detected": "Zistený AMD procesor", "AMD CPU detected": "Zistený AMD procesor",
"AMD CPU detected, but these fixes only apply to AMD EPYC and Ryzen. Nothing was changed.": "Zistený procesor AMD, ale tieto opravy platia iba pre AMD EPYC a Ryzen. Nič sa nezmenilo.",
"AMD CPU fixes applied successfully": "Opravy pre AMD procesor boli úspešne použité", "AMD CPU fixes applied successfully": "Opravy pre AMD procesor boli úspešne použité",
"AMD GPU Tools installation completed!": "Inštalácia nástrojov pre AMD GPU je hotová!", "AMD GPU Tools installation completed!": "Inštalácia nástrojov pre AMD GPU je hotová!",
"AMD GPU passthrough configured.": "AMD GPU passthrough je nastavený.", "AMD GPU passthrough configured.": "AMD GPU passthrough je nastavený.",
+1
View File
@@ -146,6 +146,7 @@
"AMD (ROCm)": "AMD (ROCm)", "AMD (ROCm)": "AMD (ROCm)",
"AMD (VA-API and ROCm detection)": "AMD (VA-API och ROCm-detektering)", "AMD (VA-API and ROCm detection)": "AMD (VA-API och ROCm-detektering)",
"AMD CPU detected": "AMD CPU upptäckt", "AMD CPU detected": "AMD CPU upptäckt",
"AMD CPU detected, but these fixes only apply to AMD EPYC and Ryzen. Nothing was changed.": "AMD-processor identifierad, men dessa korrigeringar gäller bara AMD EPYC och Ryzen. Inget ändrades.",
"AMD CPU fixes applied successfully": "AMD CPU-fixar har använts", "AMD CPU fixes applied successfully": "AMD CPU-fixar har använts",
"AMD GPU Tools installation completed!": "Installationen av AMD GPU Tools är klar!", "AMD GPU Tools installation completed!": "Installationen av AMD GPU Tools är klar!",
"AMD GPU passthrough configured.": "AMD GPU-genomföring har konfigurerats.", "AMD GPU passthrough configured.": "AMD GPU-genomföring har konfigurerats.",
@@ -697,17 +697,22 @@ apply_amd_fixes() {
pmx_journal_context "apply_amd_fixes" "$FUNC_VERSION" pmx_journal_context "apply_amd_fixes" "$FUNC_VERSION"
# description: Apply idle=nomwait and KVM module options on AMD EPYC/Ryzen hosts. # description: Apply idle=nomwait and KVM module options on AMD EPYC/Ryzen hosts.
msg_info2 "$(translate "Detecting AMD CPU and applying fixes if necessary...")" msg_info2 "$(translate "Detecting AMD CPU and applying fixes if necessary...")"
NECESSARY_REBOOT=1
local cpu_model local cpu_model cpu_vendor
cpu_model=$(grep -i -m 1 "model name" /proc/cpuinfo || true) cpu_model=$(grep -i -m 1 "model name" /proc/cpuinfo || true)
cpu_vendor=$(grep -i -m 1 "vendor_id" /proc/cpuinfo || true)
# The fixes address Zen processors; older AMD generations do not need them.
if echo "$cpu_model" | grep -qiE "EPYC|Ryzen"; then if echo "$cpu_model" | grep -qiE "EPYC|Ryzen"; then
msg_ok "$(translate "AMD CPU detected")" msg_ok "$(translate "AMD CPU detected")"
elif echo "$cpu_vendor" | grep -q "AuthenticAMD"; then
msg_ok "$(translate "AMD CPU detected, but these fixes only apply to AMD EPYC and Ryzen. Nothing was changed.")"
return 0
else else
msg_ok "$(translate "No AMD CPU detected. Skipping AMD fixes.")" msg_ok "$(translate "No AMD CPU detected. Skipping AMD fixes.")"
return 0 return 0
fi fi
NECESSARY_REBOOT=1
msg_info "$(translate "Applying AMD-specific fixes...")" msg_info "$(translate "Applying AMD-specific fixes...")"